//EFCore DB First 步骤
//第一步:Install-Package Microsoft.EntityFrameworkCore.SqlServer -version 2.1.1
//第二步:Install-Package Microsoft.EntityFrameworkCore.Tools -version 2.1.1
//第三部:Install-Package Microsoft.EntityFrameworkCore.Design -version 2.1.1
//第四部:Install-Package Microsoft.EntityFrameworkCore.SqlServer.Design
//第五步:Scaffold-DbContext -Connection "Data Source=139.159.252.186;Initial Catalog=DB;User ID=sa;Password=sa186!@#;MultipleActiveResultSets=true" -Provider "Microsoft.EntityFrameworkCore.SqlServer" -OutputDir "EntityModel"
//第六部更新实体:Scaffold-DbContext -Connection "Data Source=139.159.252.186;Initial Catalog=DB;User ID=sa;Password=sa186!@#;MultipleActiveResultSets=true" -Provider "Microsoft.EntityFrameworkCore.SqlServer" -OutputDir "EntityModel" -Force
具体细节,请查阅官网