Skip to main content
.NET Framework 4.5.2+

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.v22.2.dll

NuGet Package: DevExpress.ExpressApp


public void CheckCompatibility()


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).

See Also