8,497
社区成员
发帖
与我相关
我的任务
分享
from shop in db.trn_shop
group shop by new {shopId = shopId,shopName = shopName,shopNo=shopNo} into g
select new {
shopId = g.Key.shopId,
shopName =g.Key.shopName ,
shopNo = g.Key.shopNo,
count = g.Count(),
total = g.Sum(x=>x.total)
}