ABP 01 downloads projects

Original: https: //www.cnblogs.com/ldybyz/p/8441084.html

 

This article is shining generally get no problem

 

I record what problems arise, mostly without careful look at the article.

1, can not be migrated database with the following error:

  Your startup project 'MyABP.Core' doesn't reference Microsoft.EntityFrameworkCore.Design. This package is required for the Entity Framework Core Tools to work. Ensure your startup project is correct, install the package, and try again.    

 

   Solution: Set EntityFrameworkCore to start the project before the migration.

  

 

2, after running the project, open the list of user error, the error is as follows:

  SqlException: Incorrect syntax near 'OFFSET'. Invalid usage of the option NEXT in the FETCH statement.

  My database is SQL Server 2008

 

 

  solve:

    Position statement: MyABP.EntityFrameworkCore.MyABPDbContextConfigurer the Configure method

    将  builder.UseSqlServer(connectionString);  修改为  builder.UseSqlServer(connectionString, b => b.UseRowNumberForPaging());

 

Guess you like

Origin www.cnblogs.com/guxingy/p/11792399.html