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

XafApplication.ApplicationName Property

Specifies the application’s name.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v21.2.dll


public string ApplicationName { get; set; }

Property Value

Type Description

A string value that represents the application’s name.


The ApplicationName value is not displayed in a UI (to set a visible name, use the XafApplication.Title or IModelApplication.Title property). Instead, it is used in the internal application flow. For instance, the ApplicationName is used to check if the database is compatible with the current application when the XafApplication.CheckCompatibilityType property is set to ModuleInfo. If the application name differs from the name stored in the database, the following error occurs in this mode: “Database is designed for the ‘MyApplication1’ application while you are running the ‘MyApplication2’ application”.

If you want to change the name stored in the database manually, locate the ModuleInfo table, and find the record with the True value in the IsMain column and update the Name value there:

UPDATE ModuleInfo SET Name='NewApplicationName' WHERE IsMain='true'

The ModuleInfo table is not created and the ApplicationName value is not stored in the database when the XafApplication.CheckCompatibilityType value is DatabaseSchema.

If you need to rename the application itself, use the Application Designer or set the ApplicationName property in code:

static class Program {
   static void Main() {
      MySolutionWindowsFormsApplication application = new MySolutionWindowsFormsApplication();
      application.ApplicationName = "MyApplicationName";

When you create an XAF application using the Solution Wizard, the ApplicationName property is set to the application solution name.


To use the same database in several XAF applications with the XafApplication.CheckCompatibilityType set to ModuleInfo, set the ApplicationName of all applications to the same value.

See Also