6
可能重复:
Linq: What is the difference between Select and Where差异
什么
var a = Doc.Document.Where(n => n.Id == id).SingleOrDefault();
和
var b = Doc.Document.Select(n => n.Id == id).SingleOrDefault();
之间的区别10
为什么变量b是一个布尔值?
对不起我的无知,我是新来的LINQ。
>非常感谢。 我现在明白了。 – kevin 2012-02-27 12:38:41