1.程序通过nuget安装包

Microsoft.EntityFrameworkCore.Design

 

2.生成添加脚本

add-migration InitialCreate -Context ALMContext -outputDir migrations\ALMContextMigrations

3.执行

update-Database -Context ALMContext

 

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2020-12-31
  • 2021-11-07
  • 2022-12-23
猜你喜欢
  • 2021-04-19
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
  • 2021-06-22
相关资源
相似解决方案