.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

XafApplication.CheckCompatibility() Method

Checks whether the application and database are compatible, and if not, tries to make them compatible.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v21.2.dll

Declaration

public void CheckCompatibility()

Remarks

If the application is being run in the debugging mode, this method raises the XafApplication.DatabaseVersionMismatch event. Otherwise, the database and application compatibility is checked. If the database cannot be opened or its version is older than the actual application version, the XafApplication.DatabaseVersionMismatch event is raised. You can override this by handling the XafApplication.CustomCheckCompatibility event.

Generally, you do not need to use this method. It is called everywhere where the database and application compatibility must be checked. For instance, when you need to create an Object Space, use the XafApplication.CreateObjectSpace method, which calls the CheckCompatibility method before creating a new Object Space (see BaseObjectSpace).

The following code snippets (auto-collected from DevExpress Examples) contain references to the CheckCompatibility() 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.

See Also