This article introduces the directory structure of the solution template.
Used to store project-related documentation materials by category, such as requirement background, architecture design, module design, technical implementation plans, etc.
Used to store commonly used script files, mainly ps1 or cs scripts, to reduce repetitive workload.
src is the source code directory, containing all source code files of the solution, divided into different subdirectories according to functionality:
Provides basic class libraries needed for development, all provided in source code form, facilitating developers to modify and extend as needed. Includes the following projects:
Since the framework layer is independent of projects and business, these can be packaged into class libraries. You can develop your own toolkit based on this and publish it to private or public NuGet sources for use in other projects.
The definition layer defines business models, determines the data model and behavior of the business, and is the foundation and premise of business implementation, usually including:
Module is the carrier of the implementation layer, mainly implementing business logic, implemented by breaking it down into different Modules.
In actual needs, business requirements often involve multiple domains or multiple business modules. We can split them according to business modules. The framework provides the CommonMod shared module by default, which is referenced by other modules.
Typical structure is as follows:
The service layer faces actual callers. Usually we provide API calls through Restful API or Grpc. Different services are usually deployed with different images.
For API services, we need to focus on:
At this level, the template provides the following services by default:
Restful API.IdentityServer.EF Core.Template file directory, used to store templates needed for custom code generation.