开发者

What Is This Part Of A Linq Query Called?

开发者 https://www.devze.com 2023-02-14 15:57 出处:网络
In the LINQ query below, what do you call the \"a\"? var result = from a in db.table where a.id == 12 select new {A开发者_运维技巧 = a};

In the LINQ query below, what do you call the "a"?

var result = 
from a in db.table
where a.id == 12
select new {A开发者_运维技巧 = a};


It's a range variable. See my Edulinq post on "how query expressions work" for more details.

0

精彩评论

暂无评论...
验证码 换一张
取 消