7 Configuring nonrelational properties

This chapter covers

  • Configuring EF Core three ways
  • Focusing on nonrelational properties
  • Defining the database structure
  • Introducing value converters, shadow properties, and backing fields
  • Deciding which type of configuration works best in different situations

This chapter introduces configuring EF Core in general but concentrates on configuring the nonrelational properties in an entity class; these properties are known as scalar properties. Chapter 8 covers configuring relational properties, and chapter 10 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 ...

Get Entity Framework Core in Action, Second Edition 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.