流程:
https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/new-db

1.Both Entity Framework 6.x and Entity Framework Core commands are installed. The Entity Framework 6 version is executing. You can fully qualify the command to select which one to execute, 'EntityFramework\Update-Database' for EF6.x and 'EntityFrameworkCore\Update-Database' for EF Core.
使用:
EntityFrameworkCore\Add-Migration InitialDb
EntityFrameworkCore\Update-Database

2.报错:无法识别的转义序列 blabla
项目路径不要有中文

相关文章:

  • 2022-12-23
  • 2021-12-30
猜你喜欢
  • 2021-08-10
  • 2022-12-23
  • 2022-01-01
  • 2021-11-09
  • 2021-06-06
  • 2022-12-23
相关资源
相似解决方案