Paging with Entity Framework 7 and SQL Server 2008

后端 未结 6 458
我寻月下人不归
我寻月下人不归 2020-12-08 10:35

I\'m trying to use paging (that is .Skip(...).Take(...) in Entity Framework 7. It works OK with Microsoft SQL Server 2012 and 2014, but fails with the following

6条回答
  •  鱼传尺愫
    2020-12-08 11:11

    If you use Edmx file, you must open the edmx file using XML Editor and change

    ProviderManifestToken="2012" ==> ProviderManifestToken="2008"
    

    in line 7.

    Please take a look at this blog post for more information: http://erikej.blogspot.com.tr/2014/12/a-breaking-change-in-entity-framework.html

提交回复
热议问题