Back to Devexpress

IObjectSpaceProvider.CheckCompatibilityType Property

expressappframework-devexpress-dot-expressapp-dot-iobjectspaceprovider-84913964.md

latest4.3 KB
Original Source

IObjectSpaceProvider.CheckCompatibilityType Property

Specifies how the database and application compatibility is checked.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
CheckCompatibilityType? CheckCompatibilityType { get; set; }
vb
Property CheckCompatibilityType As CheckCompatibilityType?

Property Value

TypeDescription
Nullable<CheckCompatibilityType>

A Nullable\<CheckCompatibilityType> enumeration value specifying how the database and application compatibility is checked.

|

Available values:

NameDescription
DatabaseSchema

XAF ensures that the database schema matches the business model: all required tables, columns and databases should exist.

| | ModuleInfo |

XAF ensures that the database version matches the application version. The module versions stored in the ModuleInfo table are compared with their actual assembly versions.

|

Remarks

This property allows you to specify the mode individually for each Object Space Provider (in case you use multiple databases)

CheckCompatibilityType is set to null and the XafApplication.CheckCompatibilityType property value is actually used. Refer to this property description to learn more on available values.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CheckCompatibilityType 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-connect-different-data-models-to-several-databases-within-a-single-application/CS/XPO/.NetFramework/ClassLibrary2/XafModule2.cs#L40

csharp
);
objectSpaceProvider2.CheckCompatibilityType = CheckCompatibilityType.DatabaseSchema;
e.ObjectSpaceProviders.Add(objectSpaceProvider2);

XAF_how-to-connect-different-data-models-to-several-databases-within-a-single-application/VB/ClassLibrary1/XafModule1.vb#L41

vb
Dim objectSpaceProvider1 As IObjectSpaceProvider = New SecuredObjectSpaceProvider(CType(application.Security, SecurityStrategyComplex), New ConnectionStringDataStoreProvider(ConfigurationManager.ConnectionStrings("ConnectionStringDatabase1").ConnectionString), application.TypesInfo, typeInfoSource1, True)
objectSpaceProvider1.CheckCompatibilityType = CheckCompatibilityType.ModuleInfo
e.ObjectSpaceProviders.Add(objectSpaceProvider1)

See Also

IObjectSpaceProvider Interface

IObjectSpaceProvider Members

DevExpress.ExpressApp Namespace