15.10. Implementing Inheritance

Telerik OpenAccess ORM supports different inheritance scenarios for persistent classes. You can define your classes' inheritance, and OpenAccess will generate the backend database code to support them. Inheritance is only supported in forward mapping scenarios though.

There are four supported mapping strategies: flat, vertical, mixed (flat and vertical), and horizontal. In all four strategies, a discriminator column is used to determine which type each record represents.

To show how these strategies are supported, I created the classes and inheritance strategy shown in Figure 15-20.

Figure 15.20. Classes inheritance

15.10.1. Flat Mapping

The default mapping strategy is flat mapping. Flat mapping means that ...

Get Pro Telerik ASP.NET and Silverlight Controls: Master Telerik Controls for Advanced ASP.NET and Silverlight Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.