Startup.cs文件,在ConfigureServices方法中加入以下代码
services.Configure<AbpDbContextOptions>(options => { options.UseSqlServer(b => b.UseRowNumberForPaging()); });