NPersistence Reference Guide
Defines the inheritance strategy to be used for an entity class hierarchy. It is specified on the entity class that is the root of the entity class hierarchy.

If the Inheritance annotation is not specified or if no inheritance type is specified for an entity class hierarchy, the SINGLE_TABLE mapping strategy is used.

Examples

CopyC#
Example:

[Entity]
[Inheritance(strategy=JOINED)]
public class Customer { ... }

[Entity]
public class ValuedCustomer extends Customer { ... }

Namespace: NPersistence
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

   
 C# 
public sealed class Inheritance : Attribute

Members

         
 All Members  Constructors   Fields  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Inheritance()()()()
Initializes a new instance of the Inheritance class
Strategy
The strategy to be used for the entity inheritance hierarchy.

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    NPersistence..::..Inheritance

See Also