6 Configuring nonrelational properties
This chapter covers
- Configuring EF Core
- Focusing on nonrelational properties
- Defining the database structure
- Using shadow properties and backing fields
This chapter is the first of three that look at configuring EF Core, and it concentrates on configuring the nonrelational properties in an entity class, known as scalar properties. Chapter 7 covers configuring relational properties, and chapter 8 covers configuring more advanced features, such as DbFunctions, computed columns, and so on.
This chapter starts with an overview of the configuration process that EF Core runs when the application’s DbContext is used for the first time. You’ll then learn how to configure the mapping between the .NET classes ...
Get Entity Framework Core in Action 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.