Mid EF Core

How to apply migrations to the database?

(e.g. Update-Database)

Apply the migration to your database using:

.NET CLI:

dotnet ef database update

Package Manager Console:

Update-Database

EF Core translates your model changes into SQL and executes them against the database.

More from Entity Framework Core Tutorial

All questions for this course