Back to Devexpress

ReflectionDictionary.QueryClassInfo(Type) Method

xpo-devexpress-dot-xpo-dot-metadata-dot-reflectiondictionary-dot-queryclassinfo-x28-system-dot-type-x29.md

latest3.2 KB
Original Source

ReflectionDictionary.QueryClassInfo(Type) Method

Returns the persistent class metadata information for the specified class type.

Namespace : DevExpress.Xpo.Metadata

Assembly : DevExpress.Xpo.v25.2.dll

NuGet Package : DevExpress.Xpo

Declaration

csharp
public override XPClassInfo QueryClassInfo(
    Type classType
)
vb
Public Overrides Function QueryClassInfo(
    classType As Type
) As XPClassInfo

Parameters

NameTypeDescription
classTypeType

The class type.

|

Returns

TypeDescription
XPClassInfo

The XPClassInfo object for the specified class type or null reference ( Nothing in Visual Basic) when the metadata information for the corresponding class cannot be obtained.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the QueryClassInfo(Type) method.

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);
}

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

See Also

XPDictionary.GetClassInfo

Session.GetClassInfo

ReflectionDictionary Class

ReflectionDictionary Members

DevExpress.Xpo.Metadata Namespace