© Adam Freeman 2018
Adam FreemanPro Entity Framework Core 2 for ASP.NET Core MVChttps://doi.org/10.1007/978-1-4842-3435-8_13

13. Understanding Migrations

Adam Freeman1 
(1)
London, UK
 

In this chapter, I describe the migrations feature, which is how Entity Framework Core ensures the database reflects the data model in the application, even as that model changes. This is known as code first, meaning that you start with the data model classes you require and use migrations to create and manage the database. (This is as opposed to database first, where you work with an existing database, which I describe in Chapters 17 and 18.)

In this chapter, I explain how to create and apply migrations, how to assess the impact of migrations, and how to manage migrations ...

Get Pro Entity Framework Core 2 for ASP.NET Core MVC now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.