【发布时间】:2010-07-29 14:39:30
【问题描述】:
var emps = from x in DB
where x.ID = 100
select x;
var emp1 = from x1 in DB
where x1.ID = 100
select new { x };
这两个查询有什么区别。
如果我们使用anonymous-types,性能会提高还是还有其他差异?
【问题讨论】:
-
@muralidharan-tnj 顺便说一句。你好在stackoverflow上。在这里标记为解决您的问题的答案帖子是一个很好的做法。请记住它;)
标签: c# linq anonymous-types