Skip to main content
All docs
V22.1
.NET Framework 4.5.2+

Create a Solution (XPO)

  • 2 minutes to read

This lesson creates a new XAF solution and guides you through the XAF Solution Wizard. In the Wizard, you will do the following:

  • Add a Blazor UI project to the solution.
  • Select an ORM tool to use for data management.
  • Turn on user authentication.
  • Review available built-in modules and enable the Validation module.

At the end of this lesson, you can run the application for the first time.

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 v22.1 XAF Template Gallery and click Next. Specify the project’s name (“MySolution”) and click Create.

    Create a new XAF project

  3. In the invoked Template Gallery window, switch to the .NET Core section. Select XAF Solution Wizard (.NET Core) and click Run Wizard.

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

  4. On the first page of the Solution Wizard, you can select the target platform. Since this tutorial only demonstrates the Blazor UI, select the Web (ASP.NET Core Blazor) option and click Next.

    Select the "Web (ASP.NET Core Blazor)" platform

  5. Choose the DevExpress eXpress Persistent Objects ORM library.

    Select the ORM tool

  6. Choose the authentication type for your application. In this tutorial, we use Standard. Click Next.

    Select "Standard" authentication type

  7. Select the ready-to-use XAF modules you want to add to your application. This tutorial requires the Validation module. Click Finish.

    Select "Validation" module

    The solution contains the following projects:

    • MySolution.Blazor.Server - the ASP.NET Core Blazor application project that automatically generates the ASP.NET Core Blazor CRUD user interface. This project depends on the MySolution.Module.
    • MySolution.Module - the module project that contains platform-independent code.

      Solution Explorer view

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

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

    The following images show the resulting ASP.NET Core Blazor application. Log in as “Admin” and use an empty string as the password.

    Login window of your application

     

    Detail View of the Admin user in your application

Initial Connection to Database

The wizard attempts to find the installed Microsoft SQL Server instance (LocalDB or Express) and sets the connection string accordingly.

Refer to the Connect an XAF Application to a Database Provider topic for details on how to connect to different database systems.

Next Lesson

Inherit from the Business Class Library Class (XPO)

See Also