All docs
V21.2
21.2
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
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 a Solution

  • 2 minutes to read

This lesson explains how to create a new XAF ASP.NET Core Blazor solution.

Step-by-Step Instructions

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

  2. Select DevExpress v21.2 XAF Template Gallery and click Next. Specify the project name (“MySolution”) and click Create.

    Create a new XAF project

  3. In the invoked Template Gallery, select XAF Solution Wizard (.NET Core) in the .NET Core section and click Run Wizard.

    Select "XAF Solution Wizard (.NET Core)" in the Template Gallery

  4. The Solution Wizard opens. Select Web (ASP.NET Core Blazor) and click Next.

    Choose the platform

  5. Select an ORM for your application: choose between Entity Framework Core or eXpress Persistent Objects, and click Next.

    CTutor_Solution_Wizard_2

  6. Choose the security options of your application. In this tutorial, we will use the Standard authentication type and click Next.

    CTutor_Solution_Wizard_3_XPO

  7. Choose the XAF modules, which are automatically added to your application. Click Finish.

    CTutor_Solution_Wizard_4

    The newly created solution contains the following projects:

    • MySolution.Blazor.Server - the ASP.NET Core Blazor application project, which automatically generates the ASP.NET Core Blazor CRUD user interface. This project depends on the MySolution.Module and MySolution.Module.Blazor modules. Do not use this project for feature implementation. All application logic should be implemented in the appropriate Module projects.
    • MySolution.Module - the basic module project that contains platform independent code.
    • MySolution.Module.Blazor - the module project that contains code specific to the ASP.NET Core Blazor application.

    Tutorial_BMD_Lesson1_2

    Refer to the Application Solution Structure topic for information on the XAF solution structure.

    Note

    The wizard attempts to detect your installed SQL server and changes the connection string accordingly. Supported servers are Microsoft SQL Server (including the Express and LocalDB editions). To use another database system (PostgreSQL, MySQL, Oracle, SQLite, Firebird, etc.), change the ConnectionString argument in the appsettings.json file. Refer to the Connect an XAF Application to a Database Provider topic for details about connecting to different database systems.

  8. You can now run the application. Click Start Debugging or press F5.

    The following images show the resulting ASP.NET Core Blazor application. Use the “Admin” user name with an empty password to log in.

    Tutorial_BMD_Lesson1_3

     

    Tutorial_BMD_Lesson1_4

Next Lesson

Business Model Design with XPO

or

Business Model Design with Entity Framework Core

See Also