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
展开阅读全文
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 评论