Skip to main content
All docs
V24.1

In-Depth .NET WinForms & Blazor UI Tutorial (Employee Manager)

  • 2 minutes to read

This tutorial explains how to build an application that targets .NET framework using Windows Forms and XAF’s ASP.NET Core Blazor UI. The application should store employee information and other related objects. It uses Entity Framework Core for data access.

Tip

For additional information on how to choose an ORM that suits your needs, refer to the following topic: Why We Recommend EF Core over XPO for New Development.

blazor tutorial main demo application

If you are new to XAF, be sure to review our XAF product page for important background information on our award-winning application framework.

Dependencies and Prerequisites

Before you start the tutorial, read this section and ensure that the following conditions are met:

  1. Visual Studio 2022 v17.0+ with the ASP.NET and web development and .NET desktop development workloads is installed on your machine. You have basic experience of .NET framework development in this IDE.
  2. .NET 7.0 SDK is installed on your machine.
  3. Microsoft SQL Server.
  4. A free 30-day trial version or a licensed version of DevExpress Universal Subscription is installed on your machine.
  5. You have basic knowledge of Object-relational mapping (ORM) concepts and the Entity Framework Core.
  6. You are familiar with the XAF application architecture.
  7. XAF Considerations for Newcomers.

Tutorial Structure

This tutorial is organized in the following manner:

Connection String

This tutorial uses Microsoft’s SQL Server as its target database management system (DBMS). As you may already know, XAF supports multiple database management systems (see the list here). If you’d like to use a different DBMS, be sure to specify the appropriate connection string.

XAF apps create a database with a name that matches the name used for the solution itself. To change names, edit the connection string in the application configuration file (appsettings.json).

Start Tutorial

Define the Data Model and Set the Initial Data

See Also