Linq to sql 求和操作

linq to sql 操作

20151130

一、求和

from p in db.tblParts
group p by p.partName into g
select new {
partName = g.key,
totalWeight = g.Sum(p => p.partWeight)
}


本文链接:https://my.lmcjl.com/post/14970.html

展开阅读全文

4 评论

留下您的评论.