我有这个查询:
return (from r in this.Requests where r.Status == "Authorised" from i in r.Items select i).Sum(i => i.Value);
我尝试将它转换为 lambda,因为我现在更喜欢这样,所以我这样做了:
var sum = Requests.Where(x=>x.Status == "Authorised").Select(x=>x.Items).Sum(x=>x.Value);
--> 这里我没有Value
项目,有什么想法吗?