EF C# ToPagedList方法 The method 'Skip' is only supported for sorted input in LINQ to Entities. The method 'OrderBy' must ……

时间:2018-01-09 21:00:34   收藏:0   阅读:1695

报错信息:The method ‘Skip‘ is only supported for sorted input in LINQ to Entities. The method ‘OrderBy‘ must ……

EF 使用ToPagedList。

这是没有使用OrderBy或者OrderByDescending方法就直接调用了ToPagedList方法。

像我这样调用即可:

技术分享图片

 

原文:https://www.cnblogs.com/dawenyang/p/8253473.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!