So far, we have seen how to use the Entity Framework Code First approach to map domain entities to database tables. We also looked at how we can have entities with multiplicity relationships, and how to use Entity Framework to map the relationships in such a way that these relationships exist between the database tables too.
Now let's see how we can have inheritance relationships between domain entities, and use Entity Framework to map the data to the respective tables. We will see how to use the Entity Framework Code First approach to manage the following inheritance types:
The Table per Type (TPT) inheritance
The Table per Class Hierarchy (TPH) inheritance
The Table per Concrete Class (TPC) inheritance