Back to Devexpress

XPClassInfo.BaseClass Property

xpo-devexpress-dot-xpo-dot-metadata-dot-xpclassinfo-2710b91a.md

latest2.4 KB
Original Source

XPClassInfo.BaseClass Property

When implemented in a derived class, gets the metadata information of the base class.

Namespace : DevExpress.Xpo.Metadata

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public abstract XPClassInfo BaseClass { get; }
vb
Public MustOverride ReadOnly Property BaseClass As XPClassInfo

Property Value

TypeDescription
XPClassInfo

An XPClassInfo object which provides the metadata information of the base class. null ( Nothing in Visual Basic) if the XPClassInfo object provides a description of the class which is the root in a class hierarchy.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BaseClass property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

XAF_generate-a-sequential-number-for-a-persistent-object-within-a-database-transaction/CS/XPO/SequenceGenerator/SequenceGenerator.Module/SequenceClasses/SequenceGenerator.cs#L143

csharp
//Comment this code if you want to have the SequentialNumber column created in each derived class table.
while(ci.BaseClass != null && ci.BaseClass.IsPersistent) {
    ci = ci.BaseClass;

See Also

XPClassInfo Class

XPClassInfo Members

DevExpress.Xpo.Metadata Namespace