LinQ to entities 不能识别方法“system.string.ToString(system.String)”.因此该方法无法转换为存储表达式

在EF里面,使用IQueryable和IEnumerable可以延迟加载

list.Select()

改为:

list.AsEnumerable().Select

posted @ 2019-08-29 13:51  jasonlai2016  阅读(257)  评论(0编辑  收藏  举报