Entity Framework Core migrations

Install the Entity Framework Core command line tool by running this:

dotnet tool install --global dotnet-ef

To update the tool run:

dotnet tool update --global dotnet-ef

To add new migration run:

 dotnet ef migrations add [MigartionName]

To remove the last migration run:

dotnet ef migrations remove -f

More info here:

https://docs.microsoft.com/en-us/ef/core/cli/dotnet


Post a Comment

Previous Post Next Post