Basic .NET WinForms & Blazor Tutorial (Project Manager)(基本的.NET WinForms和Blazor教程)
This tutorial explains how to create a Cross-Platform .NET App UI (XAF) application for Windows and Web platforms to manage projects within a company department. The application uses the ASP.NET Core Blazor and Windows Forms UI platforms to display data and Entity Framework Core for data access.
本教程介绍如何为Windows和Web平台创建跨平台. NET应用程序UI(XAF)应用程序,以管理公司部门内的项目。该应用程序使用ASP.NETCore Blazor和Windows Forms UI平台显示数据,并使用Entity Framework Core进行数据访问。
The tutorial shows how to write platform-agnostic code. XAF automatically generates the application UI and establishes access to a database.
本教程展示了如何编写与平台无关的代码。XAF自动生成应用程序UI并建立对数据库的访问。
ASP.NET Core Blazor
Windows Forms
In this application, users can:
在此应用程序中,用户可以:
- View, search, create, update, and delete employees, projects, and task data.
- 查看、搜索、创建、更新和删除员工、项目和任务数据。
- View, search, create, update, and delete customers and comments from customers about a product to manage data on a promotional website.
- 查看、搜索、创建、更新和删除客户以及客户对产品的评论,以管理促销网站上的数据。
Dependencies and Prerequisites(依赖关系和先决条件)
Before you start the tutorial, read this section and ensure that the following conditions are met:
在开始本教程之前,请阅读本节并确保满足以下条件:
- 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.
- 带有ASP.NET和Web开发的Visual Studio 2022 v17.0+ .NET桌面开发工作负载已安装在您的机器上。您有基本的经验.NET框架在此IDE中开发。
- .NET 7.0 SDK is installed on your machine.
- . NET 7.0 SDK已安装在您的机器上。
- Microsoft SQL Server.
- A free 30-day trial version or a licensed version of DevExpress Universal Subscription is installed on your machine.
- 您的计算机上安装了DevExpress Universal Subscription的30天免费试用版或许可版。
- You have basic knowledge of Object-relational mapping (ORM) concepts and the Entity Framework Core.
- 您具备对象关系映射(ORM)概念和实体框架核心的基本知识。
- You are familiar with the XAF application architecture.
- 您熟悉XAF应用程序架构。
- XAF Considerations for Newcomers.
- XAF新来者的注意事项。
Tutorial’s Lessons(教程)
Create a Cross-Platform .NET App UI Application(创建跨平台.NET应用程序UI应用程序)
This lesson explains how to create a Cross-Platform .NET App UI application.
本课介绍如何创建跨平台.NET应用程序UI应用程序。
Define the Data Model and Set the Initial Data(定义数据模型并设置初始数据)
This lesson explains how to define the data model that serves as a base for the application’s CRUD UI and set up migrations to propagate data model structure changes to the database.
本课介绍如何定义用作应用程序CRUD UI基础的数据模型,并设置迁移以将数据模型结构更改传播到数据库。
Customize the Application UI and Behavior(自定义应用程序UI和行为)
This lesson explains how to customize the auto-generated UI’s structure and metadata and implement custom user interaction.
本课介绍如何自定义自动生成的UI的结构和元数据,并实现自定义用户交互。
Reuse Implemented Functionality(重用实现的功能)
This lesson explains how to add a module to your application to enable additional functionality.
本课介绍如何将模块添加到您的应用程序以启用其他功能。