Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XafApplication.CheckCompatibility() Method

In This Article

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

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

See Also