Difference between LINQ Queries & Lambda expression -


To reduce the length of the code, there is an increase in the speed of growth or there, why we use LINQ expression

Any other reason that can only be achieved by the Lambda expression & amp; Not by LINQ queries.

The query expression only covers a small subset of the LINQ operator, and only applies when You have a real expression, which means that Func & lt; T, bool & gt; Instead of being , instead of writing:

  Funk & lt; Foo, bull & gt; Predicate = ...; // somewhere from var query = get xDiDe select x (x) from x;   

I have more to write:

  Funk & lt; Foo, bull & gt; Predicate = ...; // somewhere from var query = archive to be ambiguous. Where (point);   

There are many other cases where the use of non-query expression syntax is simple, especially if your query only uses one operator.

Query expressions are effectively translated into non-some expressions, so you can do anything in query expressions no can be expressed in non-query expressions. Use Query Expressions where they make the code simpler and more readable;

I have more information about how the query expression works in what you may be interested in.

Comments