【发布时间】:2009-12-04 02:26:49
【问题描述】:
我有一个名为“MYTABLE”的表。有两列“FIRSTNAME”和“LASTNAME”。
下面的两个查询返回相同的结果是IQueryable<MYTABLE>
dataContext.MYTABLEs.Where(f => f.FIRSTNAME == firstName && f.LASTNAME == lastName);
from t in dataContext.MYTABLEs
where t.FIRSTNAME == firstName && t.LASTNAME == lastName select t;
有什么区别?这两个查询中哪个更快?
【问题讨论】:
标签: linq