© Holger Schwichtenberg 2018
Holger SchwichtenbergModern Data Access with Entity Framework Core https://doi.org/10.1007/978-1-4842-3552-2_7

7. Database Schema Migrations

Holger Schwichtenberg1 
Essen, Germany

Entity Framework Core contains tools to create a database from an object model at the time of development or runtime of the application and to change the schema of an existing database (in simple cases without data loss).

By default, Entity Framework Core assumes at startup that the database to be addressed exists and is in the correct schema version. There is no check to see whether this is really true. For example, if a table or column is missing or a relationship does not exist as intended, then you will get a runtime error (for example, ...

Get Modern Data Access with Entity Framework Core : Database Programming Techniques for .NET, .NET Core, UWP, and Xamarin with C# now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.