EFCore DbContext 報SqlException: Incorrect syntax near 'OFFSET'.

  protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer(LMCSettingHelper.GetLMCSQLCon(), opt => opt.UseRowNumberForPaging());
            base.OnConfiguring(optionsBuilder);
        }

沒有從onfiguring就在oncreateing,均可以,ide

添加上容許使用ui

UseRowNumberForPaging便可
相關文章
相關標籤/搜索