摘要:
Linq 中按照多个值进行分组(GroupBy)/// 要查询的对象class Employee { public int ID { get;set; } public string FName { get; set; } public int Age { get; set; } public char Sex { get; set; }}如果对这个类的Age和Sex的连个字段进行分组,方法如下:// 先造一些数据List empList = new List();empList.Add(new Employee() { ID = 1, FName = "John", Ag 阅读全文
posted @ 2013-07-29 11:14
学亮
阅读(16597)
评论(0)
推荐(2)

浙公网安备 33010602011771号