Back to Devexpress

XPClassInfo.ClassType Property

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

latest4.7 KB
Original Source

XPClassInfo.ClassType Property

When implemented in a derived class, gets the type of the class which is described by the current XPClassInfo object.

Namespace : DevExpress.Xpo.Metadata

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public abstract Type ClassType { get; }
vb
Public MustOverride ReadOnly Property ClassType As Type

Property Value

TypeDescription
Type

A Type descendant which represents the type of the described class.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the ClassType 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-how-to-prevent-altering-the-legacy-database-schema-when-creating-an-xaf-application/CS/WinWebSolution.Module/XpoDataStoreProxy.cs#L31

csharp
if(!IsTempDatabaseTable(ci.TableName)) {
    legacyDictionary.QueryClassInfo(ci.ClassType);
}

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

csharp
static EntitySetConfiguration CreateEntitySet(XPClassInfo classInfo, ODataModelBuilder builder) {
    EntitySetConfiguration entitySetConfig = builder.EntitySets.FirstOrDefault(t => t.EntityType.ClrType == classInfo.ClassType);
    if(entitySetConfig != null) {

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

csharp
static EntitySetConfiguration CreateEntitySet(XPClassInfo classInfo, ODataModelBuilder builder) {
    EntitySetConfiguration entitySetConfig = builder.EntitySets.FirstOrDefault(t => t.EntityType.ClrType == classInfo.ClassType);
    if(entitySetConfig != null) {

XPO_how-to-create-an-xpclassinfo-descendant-to-dynamically-build-a-persistent-class-structure-e1729/CS/DynamicDataTable/DynamicDataTableClassInfo.cs#L36

csharp
public override Type ClassType {
    get { return BaseClass.ClassType; }
}

xaf-how-to-prevent-altering-the-legacy-database-schema-when-creating-an-xaf-application/VB/WinWebSolution.Module/XpoDataStoreProxy.vb#L33

vb
If Not IsTempDatabaseTable(ci.TableName) Then
    legacyDictionary.QueryClassInfo(ci.ClassType)
Else

XPO_how-to-create-an-xpclassinfo-descendant-to-dynamically-build-a-persistent-class-structure-e1729/VB/DynamicDataTable/DynamicDataTableClassInfo.vb#L48

vb
Get
    Return BaseClass.ClassType
End Get

See Also

XPClassInfo Class

XPClassInfo Members

DevExpress.Xpo.Metadata Namespace