The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.1.dll

Declaration

public void CheckCompatibility()
Public Sub 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