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 ...