摘要:
如果你熟悉SQL语句,当使用LINQ时,会有似曾相识的感觉.但又略有不同.下面是SQL和LINQ,Lambda语法对照SQLLINQLambdaSELECT *FROM HumanResources.Employeefrom e in Employeesselect eEmployees .Select (e => e)SELECT e.LoginID, e.JobTitleFROM HumanResources.Employee AS efrom e in Employeesselect new {e.LoginID, e.JobTitle}Employees.Select (e =& 阅读全文