首页 > 其他 > 详细

Using LINQ Group By and String.Join() / Aggregate() in Entity Framework 3.5

时间:2014-02-28 08:48:17      阅读:548      评论:0      收藏:0      [点我收藏+]

linq to sql 的时候,有时候需要用到 先group  然后来个 aggregate 串连一下值, 

但会总会出错,说不识别 aggregate 或者 string.join 方法

搜遍网络 一下链接是正解: 意思就是 在group by 之后记得tolist, 然后就可以正常aggregate了~

 

http://www.mythos-rini.com/blog/archives/4510

Using LINQ Group By and String.Join() / Aggregate() in Entity Framework 3.5,布布扣,bubuko.com

Using LINQ Group By and String.Join() / Aggregate() in Entity Framework 3.5

原文:http://www.cnblogs.com/akak123/p/3571393.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!