select id from user where name=“”这种用lambda表达式如何写?
1 var result = users 2 .Where(u => u.Name == "foo") 3 .Select(u => u.Id);
from u in user
where name=""
select id
楼上跟这个都可以