Update-Database command is missing in EF Core

.net-core aspnetboilerplate ef-migrations entity-framework entity-framework-core

Question

  • Downloaded .NET Core template v3.4.0
  • From VS2017 Package Manager Console, I tried to autocomplete Update-Database command but this command does not exist!

https://imgur.com/a/MqA0a

1
0
12/18/2017 4:00:02 PM

Accepted Answer

For EF Core, you can use dotnet ef database update in Command Prompt.

Run that in the EntityFrameworkCore folder in Command Prompt, not the VS command window.

3
12/18/2017 3:50:35 PM

Popular Answer

Did you install the Microsoft.EntityFrameworkCore.Tools package?

Install-Package Microsoft.EntityFrameworkCore.Tools
Update-Database


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow