XafApplication.CheckCompatibilityType Property
Specifies how the database and application compatibility is checked.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
#Declaration
[DefaultValue(CheckCompatibilityType.ModuleInfo)]
public CheckCompatibilityType CheckCompatibilityType { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Check |
Module |
A Check |
Available values:
Name | Description |
---|---|
Database |
The database schema compatibility is checked: all required tables, columns and the database itself should exist. |
Module |
The module versions stored in the Module |
#Remarks
You can set CheckCompatibilityType
to the following values.
Value | Description |
---|---|
| XAF performs the following checks:
The Xaf In applications that use XPO ORM, XAF utilizes native XPO techniques to check the conditions. In applications that use Entity Framework Core ORM, XAF uses the Ensure |
| In this mode, XAF creates a If your application uses Entity Framework Core ORM, register the Each module’s default version value is “1. This mode is more complicated compared to |
You can change the CheckCompatibilityType
property value in the Application Designer:
XafApplication sets CheckCompatibilityType
to its default value of ModuleInfo
. However, an XafApplication
descendant overrides the default value to DatabaseSchema
in code generated by the Solution Wizard. This change preserves the behavior of applications created in earlier versions. The following example shows how this code may look:
// ...
public class MainDemoBlazorApplication : BlazorApplication {
public MainDemoBlazorApplication() {
// ...
CheckCompatibilityType = DevExpress.ExpressApp.CheckCompatibilityType.DatabaseSchema;
// ...
}
}
Tip
Use the IObject
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references 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.