2013年6月27日
摘要: GroupGroup是进行分组操作,同SQL中的Group By类似。原型如下:publicstaticIEnumerable>GroupBy(thisIEnumerablesource,FunckeySelector)它有几个重载,返回类型有两种:IEnumerable> 和 IEnumerable。返回类型为:IEnumerable>示例:返回按学号分组学生的成绩varresult=fromscoreinDataSource.Scoresgroupscorebyscore.StudentIDintoscoreGroup select scoreGroup;scoreGro 阅读全文
posted @ 2013-06-27 18:12 淡然一笑y 阅读(366) 评论(0) 推荐(0) 编辑