Last post Sep 23, 2014 06:00 AM by Pengzhen Song - MSFT
Sep 20, 2014 11:55 AM|jasminder.33|LINK
I have been going through the concept of expression trees and lamda expressions and their use in the LINQ queries. I have one doubt which is
We have a query of the type :
_dbEntities.Customers.Where(cst => cst.CustomerId == 10).FirstOrDefault();
When the above query is executed, is the lamda expression (highlighted above) converted into an expression tree first ?
Sep 23, 2014 06:00 AM|Pengzhen Song - MSFT|LINK
In my opinion, the lamda expressin will be converted to delegates and then Convert expressions into SQL so that they can be executed by a server.
Please refer to the document which might help you understand the issue: