LINQ to Entities supports three types of inheritance:
As Table per Concrete inheritance is not used as often as Table per Hierarchy and Table per Type inheritances, in this book we will only cover the first two inheritance types.
In Table per Hierarchy inheritance, there is a single database table that contains fields for both parent information and child information. With relational data, a discriminator column contains the value that determines which class any given record belongs to.
For example, consider a
Persons table that contains everyone employed by a company. Some people ...