I have two queries and i m using the result of the first one in the second one like this
var temp = (ObjectTable.Where(o => o.Category == "Y"));
var anonymousObjList = temp.Select(o => new {o, IsMax = (o.Value == temp.Max(x => x.Value))});
是否有办法将这些问题纳入其中?
EDIT: I cannot just chain them directly because I m using temp.Max() in the second query.