In this course, you'll learn how to use Entity Framework Code First Migrations to propagate data model changes to your database.
What you'll learn
- Enabling Migrations
- Adding Migrations
- Updating the Database
- Modifying Migrations
- Deploying Migrations
Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.
In this course, you'll learn how to use Entity Framework Code First Migrations to propagate data model changes to your database.
We'll start by looking at the challenge of maintaining our data model after our application has been released into production and how Code First Migrations helps us with propagating data model changes to the database. Then we'll see how to enable migrations for our project, create our first migration, and update our database. We'll also see how the Migration Fluent API is used within migration classes and how to seed our database using the migrations Configuration class.
Chevron 12 steps4:41
6:06
5 questions
2:09
4:05
6:04
4:13
7:31
1 objective
5:54
1 objective
10 questions
Now that we have a basic understanding of what migrations are and how they work, let's make a change to our data model and add a migration for that change. We'll also see how we can not only upgrade our database, but also downgrade it. And we'll look at an example of a data model change that'll require us to modify the migration that EF generates for us. Then we'll wrap up with an overview of workflows and environments and the various deployment options that Code First Migrations provides.
Chevron 6 steps7:43
5:01
12:47
4:02
8:26
10 questions
Get personalized course recommendations, track subjects and courses with reminders, and more.