xpo-devexpress-dot-xpo-dot-metadata-dot-xpclassinfo-e9cb400a.md
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
public abstract Type ClassType { get; }
Public MustOverride ReadOnly Property ClassType As Type
| Type | Description |
|---|---|
| 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.
if(!IsTempDatabaseTable(ci.TableName)) {
legacyDictionary.QueryClassInfo(ci.ClassType);
}
XPO_how-to-implement-odata4-service-with-xpo-netcore/CS/ODataService/Models/SingletonEdmModel.cs#L56
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
static EntitySetConfiguration CreateEntitySet(XPClassInfo classInfo, ODataModelBuilder builder) {
EntitySetConfiguration entitySetConfig = builder.EntitySets.FirstOrDefault(t => t.EntityType.ClrType == classInfo.ClassType);
if(entitySetConfig != null) {
public override Type ClassType {
get { return BaseClass.ClassType; }
}
If Not IsTempDatabaseTable(ci.TableName) Then
legacyDictionary.QueryClassInfo(ci.ClassType)
Else
Get
Return BaseClass.ClassType
End Get
See Also