学习010-01-01 Application Solution Structure(应用解决方案结构)

Application Solution Structure(应用解决方案结构)

An XAF solution contains multiple projects. This topic describes these projects and supported platforms.
一个XAF解决方案包含多个项目。本主题描述这些项目和支持的平台。

The Solution Wizard allows you to create a solution for the following frameworks:
解决方案向导允许您为以下框架创建解决方案:

.NET: WinForms, ASP.NET Core Blazor, and Web API applications + End-to-End/Functional test project
在这里插入图片描述

.NET Framework 4.5.2+: WinForms and ASP.NET Web Forms applications + End-to-End/Functional test project

在这里插入图片描述

Your solution may not include projects for all supported platforms. You can select platforms for the current solution in the Solution Wizard. The following image shows this wizard that creates a .NET XAF WinForms application.
您的解决方案可能不包括所有受支持平台的项目。您可以在解决方案向导中为当前解决方案选择平台。下图显示了这个创建. NET XAF WinForms应用程序的向导。
在这里插入图片描述

Projects(项目)

Main Module Project (.NET Framework & .NET)(主模块项目(. NET Framework&.NET))

在这里插入图片描述

Use this project to implement UI-independent application elements. For example, you can define a Business Model and implement UI-independent Controllers. Your applications can use the same Business Model and share Controllers from this project.
使用此项目实现独立于UI的应用程序元素。例如,您可以定义业务模型并实现独立于UI的控制器。您的应用程序可以使用相同的业务模型并共享此项目中的控制器。

Use the Add New Item dialog to declare a new class in the Module project.
使用添加新项目对话框在模块项目中声明一个新类。
在这里插入图片描述

Utilize a special template to add a Business Object, View Controller, or Window Controller.
使用特殊模板添加业务对象、视图控制器或窗口控制器。

Platform-Specific Module Projects (.NET Framework)(特定于平台的模块项目(. NET Framework))

在这里插入图片描述

Use these projects to implement custom platform-specific Controllers, Property Editors, and other elements for your WinForms or ASP.NET Web Forms application.
使用这些项目为WinForms或ASP.NETWeb Forms应用程序实现自定义平台特定的控制器、属性编辑器和其他元素。

Tip
These projects are also available in .NET solutions created in v21.2 and earlier. In .NET solutions created in v22.1+, you can add all ASP.NET Core Blazor-specific and WinForms-specific elements to the corresponding application project.
在v21.2及更早版本中创建的. NET解决方案中也可以使用这些项目。在v22.1+中创建的.NET解决方案中,您可以将所有ASP.NETCore Blazor特定和WinForms特定的元素添加到相应的应用程序项目中。

WinForms Application Project (.NET Framework & .NET)(WinForms应用程序项目(. NET Framework&.NET))

在这里插入图片描述

Contains code specific to your application’s WinForms version.
包含特定于应用程序的WinForms版本的代码。

If your solution includes the platform-specific module project, add business classes, editors, and Controllers to this project instead of the application project.
如果您的解决方案包含特定于平台的模块项目,请将业务类、编辑器和控制器添加到此项目而不是应用程序项目。

ASP.NET Web Forms Application Project (.NET Framework)(ASP.NETWeb窗体应用程序项目(. NET Framework))

在这里插入图片描述

Contains code specific to your application’s ASP.NET Web Forms version.
包含特定于应用程序ASP.NETWeb窗体版本的代码。

ASP.NET Core Blazor Application Project (.NET)(ASP.NET核心Blazor应用程序项目(. NET))

在这里插入图片描述

Contains code specific to your application’s ASP.NET Core Blazor version.
包含特定于应用程序ASP.NETCore Blazor版本的代码。

If your solution includes the platform-specific module project, add business classes, editors, and Controllers to this project instead of the application project.
如果您的解决方案包含特定于平台的模块项目,请将业务类、编辑器和控制器添加到此项目而不是应用程序项目。

Web API Application Project (.NET)(Web API应用程序项目(. NET))

在这里插入图片描述

Contains Web API settings. See the following topic for more information on how to add a Web API service to your application: Backend Web API Service / REST API.
包含Web API设置。有关如何将Web API服务添加到应用程序的更多信息,请参阅以下主题:后端Web API服务/REST API。

End-to-End/Functional Test Project (.NET Framework & .NET)(端到端/功能测试项目(. NET Framework&.NET))

在这里插入图片描述

Contains predefined configuration for end-to-end (functional) tests. In this project, you can write C#/VB.NET functional tests for your XAF applications.
包含端到端(功能)测试的预定义配置。在此项目中,您可以为XAF应用程序编写C#/VB.NET功能测试。

Important Notes(重要注意事项)

WinForms, ASP.NET Web Forms, ASP.NET Core Blazor, and Web API applications can be built based on the same Business Model, business logic, and Controllers when all applications use the same set of modules.
当所有应用程序使用相同的模块集时,WinForms、ASP.NETWeb Forms、ASP.NETCore Blazor和Web API应用程序可以基于相同的业务模型、业务逻辑和控制器构建。

If you do not need the WinForms, Blazor, Web API, or ASP.NET Web Forms application version, do not include the corresponding project in the solution. A straightforward application can contain one application project.
如果您不需要WinForms、Blazor、Web API或ASP.NETWeb Forms应用程序版本,请不要在解决方案中包含相应的项目。一个简单的应用程序可以包含一个应用程序项目。

Optionally, your XAF solution may include the Application Server Project, Workflow Server Project, and any other custom projects.
或者,您的XAF解决方案可能包括Application Server Project、Workflow Server Project和任何其他自定义项目。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

汤姆•猫

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值