Telerik OpenAccess Classic

Telerik OpenAccess ORM Send comments on this topic.
Inheritance
Programmer's Guide > OpenAccess ORM Classic (Old API) > OpenAccess Application Scenarios > Inheritance

Glossary Item Box

This documentation article is a legacy resource describing the functionality of the deprecated OpenAccess Classic only. The contemporary documentation of Telerik OpenAccess ORM is available here.

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.