我正在使用"Microsoft.EntityFrameworkCore.SqlServer": "1.0.0-rc2-final",SQL 2008并根据谷歌上发现的一些结果,我只需要.UseRowNmberForPaging()在创建新的时添加选项DBcontext.这是解决方案,rc1-final但它似乎不起作用rc2-final.
在配置我的服务时添加选项时,无法识别.
尝试对记录进行分页SQL Server 2008,EF Core因此这似乎是推荐的解决方案.
这是我用来配置服务的行:
services.AddDbContext<Data.Models.AC_MCLContext>(options =>
options.UseSqlServer(connection).UseRowNumberForPaging());
Run Code Online (Sandbox Code Playgroud)
有没有人知道如何在EntityFramework Core rc2中使用行号进行分页?