protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { optionsBuilder.UseSqlServer(LMCSettingHelper.GetLMCSQLCon(), opt => opt.UseRowNumberForPaging()); base.OnConfiguring(optionsBuilder); }
沒有從onfiguring就在oncreateing,均可以,ide
添加上容許使用ui
UseRowNumberForPaging便可