Fluent and Query Expression — Is there any benefit(s) of one over other?

后端 未结 13 1625
一向
一向 2020-11-22 05:15

LINQ is one of the greatest improvements to .NET since generics and it saves me tons of time, and lines of code. However, the fluent syntax seems to come much more natural

13条回答
  •  Happy的楠姐
    2020-11-22 05:48

    I really like the Fluent syntax and I try to use it where I can, but in certain cases, for example where I use joins, I usually prefer the Query syntax, in those cases I find it easier to read, and I think some people are more familiar to Query (SQL-like) syntax, than lambdas.

提交回复
热议问题