标签:网络 color key groupby group int new eal blog
var dealOtherDetail = items.GroupBy(x => new { x.DetailID }).Select(g => new { g.Key.DetailID, qty = g.Sum(a => a.AppointQty) }).ToList();
整理于网络。
标签:网络 color key groupby group int new eal blog
原文地址:http://www.cnblogs.com/iplay/p/7815969.html