Net Core项目 无法进行分页 数据库是 SqlServer 2008R的
.Net EF Core数据库使用SQL server 2008 R2分页报错
How to avoid the “Incorrect syntax near 'OFFSET'. Invalid usage of the option NEXT in the FETCH statement.”
我百度找了一些方法 有关 start.cs下面的代码不是很清楚
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<DBContext> (options =>
options.UseSqlServer(_config["ConnectionStrings:DefaultConnection"], p => p.UseRowNumberForPaging ()));
}
然后这个问题就无法进行处理 我整个人就卡在了这里
请求大神可以进行帮助解答 ,积分送上