expressappframework-devexpress-dot-expressapp-dot-iobjectspaceprovider-84913964.md
Specifies how the database and application compatibility is checked.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
CheckCompatibilityType? CheckCompatibilityType { get; set; }
Property CheckCompatibilityType As CheckCompatibilityType?
| Type | Description |
|---|---|
| Nullable<CheckCompatibilityType> |
A Nullable\<CheckCompatibilityType> enumeration value specifying how the database and application compatibility is checked.
|
Available values:
| Name | Description |
|---|---|
| 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.
|
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.
);
objectSpaceProvider2.CheckCompatibilityType = CheckCompatibilityType.DatabaseSchema;
e.ObjectSpaceProviders.Add(objectSpaceProvider2);
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