Sql Server 版本不得低于 2012,否则会出现分页方法出错
- 使用程序包管理器控制台(前提安装 Microsoft.EntityFrameworkCore、Microsoft.EntityFrameworkCore.Tools )
Add-Migration Init
Update-DataBase
Remove-Migration
- 使用 .NET Core CLI 命令
dotnet ef migrations add init
dotnet ef database update
*