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

16. Tips and Tricks for Mapping

Holger Schwichtenberg1 
(1)
Essen, Germany
 

This chapter describes additional ways to influence the mapping of entity classes to the database schema. Many of these possibilities are not shown in the example of World Wide Wings because they do not fit into it well.

Shadow Properties

Entity Framework Core can create shadow properties (aka shadow state properties) for those columns of the database table for which there is no corresponding property or field in the entity class.

Automatic Shadow Properties

A shadow property is created automatically if there is no matching foreign key property ...

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.