Skip to main content

TdxMapInheritanceType Enum

Enumerates data storage options for entity class descendants marked by the InheritanceAttribute.

Declaration

TdxMapInheritanceType = (
    ParentTable,
    OwnTable
);

Members

Name
ParentTable
OwnTable

Remarks

Values include:

Value Description
ParentTable A descendant class stores its data in the ancestor’s table. This requires that you introduce a discriminator column in the ancestor and provide discriminator column values for each entity class in the inheritance tree.
OwnTable A descendant class stores its data in a separate table and inherits its primary key from the ancestor. A foreign key constraint enforcing key integrity is created automatically in this table.

Note

TdxMapInheritanceType is a scoped enumeration type. Use the type name together with a scope resolution token (. in Delphi or :: in C++Builder) followed by an enumeration value to refer to this value. For example, use TdxMapInheritanceType.ParentTable (in Delphi) or TdxMapInheritanceType::ParentTable (in C++Builder) to refer to the ParentTable value in code.

See Also