Difference between Expression<Func<>> and Func<>
-
Hi All, Can you pls explain with example what is difference between Expression<Func<>> and Func<> in linq to sql query generation? Thanks in advance,
Anish Patel
-
Hi All, Can you pls explain with example what is difference between Expression<Func<>> and Func<> in linq to sql query generation? Thanks in advance,
Anish Patel
Probably you can find here someone that could answer you, but I think that you have too much more chances if you move you post to the LINQ forum ;)
-
Hi All, Can you pls explain with example what is difference between Expression<Func<>> and Func<> in linq to sql query generation? Thanks in advance,
Anish Patel
I believe an expression is one line where as the Func can be multiples and uses brackets. Expression
collection.Foreach(item => item.DoSomething());
Function
collection.Foreach(item =>
{
someReturn = DoSomething(item);
item.DoSomethingElse(someReturn);
});Query requirements usually force an expression.
Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.