代码改变世界

How Can You Tell the Difference Between LINQ Methods and Query Builder Methods?

2014-01-15 08:53  ARMdong  阅读(148)  评论(0编辑  收藏  举报

LINQ's method syntax looks very similar to the query builder methods,except for one big difference:the parameters.Theparameters of a LINQ method ara lambda expressions,whereas the parameters of the query builder methods are Entity SQL string expressions.A number of methods have the same name:Where , OrderBy, Select, and others. The compiler uses the parameters to determine which path to go down,in much the same way that the .NET compiler handles overloaded methods anywhere else.