|
Answer» In Entity Framework, inheritance is primarily divided into three types: - Table per Hierarchy (TPH): The TPH inheritance representation shows one table per inheritance hierarchy class. A discriminator column also aids in DISTINGUISHING between inheritance classes. This is Entity Framework's default inheritance mapping technique.
- Table per TYPE (TPT): In this inheritance method, each domain class has its own table.
- Table per CONCRETE Class (TPC): TPC demonstrates a single table per concrete class, but does not include the abstract class. Because of this, if an abstract class is inherited by many concrete classes, then the tables in all those concrete classes will have the same properties as that of an abstract class.
|