Lina Group

var query = from ll in proListRequestList group ll by new {ll.pro_id} into g select new ProListRequest { pro_id = g.Key.pro_id, number = g.Sum(x => x.number), level=level };

posted @ 2014-09-23 20:30  Master HaKu  阅读(139)  评论(0编辑  收藏  举报