当前位置:健康减肥瘦身 > 瘦身减肥 > EF C# ToPagedList方法 The method 'Skip' is only supported for sorted input in LINQ to Entities. The method 'OrderBy' must ……

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

文章作者:瘦身减肥 上传时间:2019-12-01

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

EF 使用ToPagedList。

那是从未选取OrderBy大概OrderByDescending方法就一贯调用了ToPagedList方法。

像自己如此调用就能够:

图片 1

 

本文由健康减肥瘦身发布于瘦身减肥,转载请注明出处:EF C# ToPagedList方法 The method 'Skip' is only supported for sorted input in LINQ to Entities. The method 'OrderBy' must ……

关键词: