摘要:
先把需要过滤的条件封转成listList A List = new List A();//分组查询var P= List .GroupBy(x = new { x.Age, x.Sex }) .Select(group = new { Stu= group.Key, Amount= group.sum(x=x.FAmount) });//遍历集合foreach (var a in P) {intAmount= p.Amount;int Age = p.Stu.Age} 阅读全文
posted @ 2010-11-30 16:58 一佳一 阅读(884) 评论(0) 推荐(1) 编辑