How does Entity Framework represent inheritance in a relational database by default?

  • Table per class
  • Table per entity
  • Table per hierarchy
  • Table per type
By default, Entity Framework represents inheritance in a relational database using the "Table per hierarchy" strategy. In this approach, a single table is used to store data for all types in the inheritance hierarchy. Columns corresponding to properties of all types are included in this table, with a discriminator column used to determine the actual type of each row.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *