A newer version of this page is available. Switch to the current version.

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 invoked window, choose a language (C# or Visual Basic) and the DevExpress project type. Select DevExpress v20.2 XAF Solution Wizard and click Next.

    Create a new project

  3. Specify the new solution’s name (“SimpleProjectManager”) and click Create.

    Configure a new project

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

    CTutor_Solution_Wizard_1

  5. Choose Entity Framework 6 and eXpress Persistent Objects and click Next.

    SolutionWizard_Step2_Both_Cut

    Note

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

  6. 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

  7. Click Finish.

The Solution Wizard creates a solution with the following projects:

Solution Explorer

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