.NET and ASP.NET Core 10 · Entity Framework Core
Apply migrations
Update the database to the latest migration.
dotnet ef database update
Caution: Check the migration and back up production data first.
Official .NET and ASP.NET Core 10 documentation
More entity framework core commands
- Install the EF tool
- Add a migration
- Remove the last migration
- Generate a SQL script
- Register a DbContext
All entity framework core commands · .NET and ASP.NET Core 10 cheatsheet