Back to Devexpress

XPClassInfo.TableMapType Property

xpo-devexpress-dot-xpo-dot-metadata-dot-xpclassinfo-f2f2cc4d.md

latest2.1 KB
Original Source

XPClassInfo.TableMapType Property

Gets a value that specifies which table persistent properties and fields are saved to.

Namespace : DevExpress.Xpo.Metadata

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public MapInheritanceType TableMapType { get; }
vb
Public ReadOnly Property TableMapType As MapInheritanceType

Property Value

TypeDescription
MapInheritanceType

A MapInheritanceType enumeration value that specifies which table persistent properties and fields are saved to.

|

Available values:

NameDescription
ParentTable

The persistent properties and the fields of a class are stored in the same table as the properties of its parent class.

Note

When storing descendant classes to the table of their parent class, make sure that properties of different data types are not mapped to the same column.

| | OwnTable |

Persistent properties and fields are stored in a separate table.

|

Remarks

The mapping inheritance type is specified using the MapInheritanceAttribute.MapType property of the MapInheritanceAttribute attribute. If no MapInheritanceAttribute is specified, the TableMapType property returns the MapInheritanceType.OwnTable value.

See Also

MapInheritanceAttribute

XPClassInfo Class

XPClassInfo Members

DevExpress.Xpo.Metadata Namespace