Telerik OpenAccess ORM enables you to define persistent classes that includes object inheritance. The following links are to topics relevant to specific types of inheritance scenarios.
Types of inheritance mapping scenarios:
To illustrate the different mapping strategies, the following class hierarchy will be used:
It consists of a base ‘Pet’ class, two inheritors – ‘Cat’ and ‘Dog’ and additional ‘Rottweiler’ and ‘WienerDog’ classes that inherit the ‘Dog’ class. Each of them has some information fields. They will be made persistence-capable by using the Telerik OpenAccess ORM tool and ‘Forward mapping’. This can be accomplished in various ways. They differ in how the data is structured in the database and each mapping model has its advantages and disadvantages.
 |
OpenAccess default mapping strategy is Flat mapping. |