Skip to main content
A newer version of this page is available.

Create an XAF Application

  • 2 minutes to read

This topic describes how to use the Solution Wizard to create XAF applications and specify a connection string.

Create the WinForms and ASP.NET Applications

  1. From the Visual Studio main menu, select File | New | Project… to invoke the New Project dialog.

  2. In the Installed tree, expand a language node (Visual C# or Visual Basic) and choose DevExpress XAF. Select DevExpress v18.2 XAF Solution Wizard, specify the new solution’s name - “SimpleProjectManager”, and click OK.

    SPM_NewProject

  3. Choose the target platform(s) on the Solution Wizard‘s first page. You can create separate WinForms, ASP.NET, Mobile (maintenance mode) applications, or multiple applications at once. Choose the Windows and Web platforms and click Next.

    CTutor_Solution_Wizard_1

  4. Choose Entity Framework Code Fist and eXpress Persistent Objects and click Next.

    SolutionWizard_Step2_Both_Cut

    Note

    You can use the Entity Framework (EF) or eXpress Persistent Objects (XPO) as your project’s object-relational mapping (ORM) tool. This tutorial demonstrates the EF Code First and XPO-based approaches. Two ORMs are selected simultaneously for demo purposes. Real-world applications usually use one ORM.

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

    SolutionWizard_Step3_None_Cut

  6. Click Finish.

The Solution Wizard creates a solution with the following projects:

SPM_SolutionExplorer

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

Specify the Database Connection

The XAF applications use the MSSql Server LocalDB database with the following connection string:

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

You can modify this connection string in the SimpleProjectManager.Win\App.config and SimpleProjectManager.Web\Web.config files (refer to the connectionStrings element). See the Connect an XAF Application to a Database Provider topic for more information.

At this stage, you can run the WinForms and ASP.NET applications with automatically created navigation, menu, and other UI elements for line-of-business (LOB) applications. However, the business 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