我想用多个字段进行分组,例如 q = q.GroupBy(c => c.Id, c.name,c.age,c.dob)
还如何将它们放入选择查询中?这样我也会在选择查询中获得新添加的字段。
q = q.GroupBy(c => c.Id)
.Select(g => new View
{
Id = g.Key,
ENAME= string.Join(",", g.Select(x => x.CaseApprover).ToList())
});