entity framework – Update-Database command is missing in EF Core
entity framework – Update-Database command is missing in EF Core
Did you install the Microsoft.EntityFrameworkCore.Tools
package?
Install-Package Microsoft.EntityFrameworkCore.Tools
Update-Database
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.
entity framework – Update-Database command is missing in EF Core
The Above mentioned reasons are valid, But I have also faced this issue sometimes.I have found one workaround for this.
- Open new visual studio instance.
- Open Package Manager Console, let it load.
- Open Project or Solution in the same instance.
- Run Update-DataBase in Package Manager Console.