有关在以下sql查询中查找Linq等效项的帮助:
select sum(weight) from (
select weight from pers p
join list l on l.persindex= p.persindex
group by p.persindex,weight) a发布于 2012-06-12 20:34:41
from p in context.pers
join l in context.list on l.persindex equals p.persindex
group by new
{ p.persindex,
l.weight
} into myGroup
select new()
{ Key = myGroup.Key,
GroupSum = myGroup.sum(x=>x.weight)
} https://stackoverflow.com/questions/10996634
复制相似问题