All docs
V20.2
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

Create an XAF Application

  • 2 minutes to read

This topic describes how to use the Solution Wizard to create an XAF application and specify its connection string.

Create the Blazor Applications

  1. From Visual Studio's main menu, select File | New | Project... to invoke the Create a new project dialog.

  2. Select DevExpress v20.2 XAF.Blazor Solution Wizard and click Next.

    Create a new XAF Blazor project

  3. Specify the project name ("SimpleProjectManager") and click Create.

    Specify a name for the new XAF Blazor project

  4. Choose eXpress Persistent Objects and click Next.

    Choose ORM

    NOTE

    You can use the Entity Framework Core or eXpress Persistent Objects (XPO) as your project's object-relational mapping (ORM) tool. This tutorial demonstrates the XPO-based approach.

  5. You can now choose security options for your application. Choose None as the Authentication type. This tutorial does not show how to use the XAF Security System. Click Finish.

    The Choose Security page in the Solution Wizard

The Solution Wizard creates a solution with the following projects:

SPM_SolutionExplorer

Refer to the Application Solution Structure topic for more information on projects in an XAF solution.

Specify the Database Connection

The wizard connects the application to the Microsoft SQL Server database with the following connection string:

"Integrated Security=SSPI;Pooling=false;Data Source=(localdb)\\mssqllocaldb;Initial Catalog=SimpleProjectManager"

You can modify this connection string in the SimpleProjectManager.Blazor.Server\appsettings.json file (refer to the connectionStrings element).

At this stage, you can run the Blazor applications with automatically created navigation, menu, and other UI elements for line-of-business (LOB) applications. However, the data model and logic are not defined yet - this is implemented in the following topics.

Next topic: Define the Logical Data Model and Relationships

See Also