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

6. Customizing the Database Schema

Holger Schwichtenberg1 
(1)
Essen, Germany
 

In many cases, Entity Framework Core can create a database schema in forward engineering based solely on conventions from an object model. However, the previous chapter has already shown that conventions are not always enough to create a valid database schema. The computer needed tutoring by the software developer to create composite primary keys, to create primary keys for inheriting classes, and to deactivate the cascading deletion; otherwise, the database results in circular deletion operations.

In other cases, although Entity Framework ...

Get Modern Data Access with Entity Framework Core: Database Programming Techniques for .NET, .NET Core, UWP, and Xamarin with C# 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.