DBContext

EF Core Migrations

In this tutorial, we look at What is Entity Framework Migration is and how to create migrations. We will build a simple console application and create two models. We will use the add-migration command to create the migration and then use the update-database command to create the database. Next, we will update the model and create another migration and update the database. Then we will revert the migration from the database and remove the migration. Finally, we will also see how to generate SQL Scripts containing the migration commands

EF Core Migrations Read More »

Scroll to Top