Back to Devexpress

XPClassInfo.PersistentBaseClass Property

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

latest2.8 KB
Original Source

XPClassInfo.PersistentBaseClass Property

Gets the information about the nearest persistent parent class in the inheritance hierarchy.

Namespace : DevExpress.Xpo.Metadata

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public XPClassInfo PersistentBaseClass { get; }
vb
Public ReadOnly Property PersistentBaseClass As XPClassInfo

Property Value

TypeDescription
XPClassInfo

An XPClassInfo object which corresponds to the nearest persistent parent class in the inheritance hierarchy.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the PersistentBaseClass 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.

XPO_how-to-implement-odata4-service-with-xpo-netcore/CS/ODataService/Models/SingletonEdmModel.cs#L62

csharp
entitySetConfig = builder.AddEntitySet(classInfo.ClassType.Name, entityTypeConfig);
if(classInfo.PersistentBaseClass != null) {
    EntitySetConfiguration baseClassEntitySetConfig = CreateEntitySet(classInfo.PersistentBaseClass, builder);

XPO_how-to-implement-odata4-service-with-xpo/CS/ODataService/App_Start/WebApiConfig.cs#L75

csharp
entitySetConfig = builder.AddEntitySet(classInfo.ClassType.Name, entityTypeConfig);
if(classInfo.PersistentBaseClass != null) {
    EntitySetConfiguration baseClassEntitySetConfig = CreateEntitySet(classInfo.PersistentBaseClass, builder);

See Also

XPClassInfo Class

XPClassInfo Members

DevExpress.Xpo.Metadata Namespace