sql = select goodsid,ceiling(qs),sum(money) from md group by goodsid,ceiling(qs)我想問一個ceilling這個功能用linq如何實現呀。謝謝了。
from x in md
group x by new { goodsid, cqs = math.ceiling(qs) } into g
select new { g.key.goodsid g.key.cqs,sum = g.Sum(y => y.money) };