Create an XAF Application
- 2 min 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
From the Visual Studio main menu, select File | New | Project... to invoke the New Project dialog.
In the Installed tree, expand a language node (Visual C# or Visual Basic) and choose DevExpress XAF. Select DevExpress v19.2 XAF Solution Wizard, specify the new solution's name - "SimpleProjectManager", and click OK.
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.
Choose Entity Framework Code Fist and eXpress Persistent Objects and click Next.
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.
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.
The Solution Wizard creates a solution with the following projects:
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