This section makes a small change to the name, because I used ef5.0 to support code first migrations.
Image 1:
Image 2:
First of all, let's take a general look at the overall system style. Of course, these functions are also available for the time being. I need to improve the general permission management system step by step.
1. Overall Architecture Overview
1. Framework
1. The egojitframework. Comm namespace is a basic supporting class unrelated to the business. Including the basecontroller class.Controller. All future controller classes inherit from it. We can do something in it.
2. egojitframework. domain is a class that supports domain-driven ideas.
3. egojitframework. domain. repositories: Warehousing-related operations. Here it is designed to be replaceable. Here we use EF, but we can also replace it with NH.
4. egojitframework. Infrastructure: Manages object services, mainly for transaction processing and management.
(2) System
1. egojitframework. domain. dtoui: the relationship between the DTO Interface Class and the business class must be distinguished. It is mainly responsible for displaying business data on the front-end interface.
2. egojitframework. domain. Model: It is a real business class library. Each class is generated to the database using code first. His rationality determines how far the system can go.
3. egojitframework. Services is the service class interface library, where all business-related classes are located. The above method is called by the Controller through reflection. This ensures the purity of actions in the controller.
4. Implement egojitframework. servicesiplEgojitframework. ServicesMethod of the interface in the class library,Called by controller through reflection.
5. egojitframework. Web, which is easy to seeProgramB/S interface
Ii. Dependency
The web layer decouples andServicesLayer dependency. At the same time, the web layer andDtouiLayer.ServicesLibraries in the dependency framework
Time is precious and can only be short. Important classes in various libraries will be described in detail in the subsequent series
Disclaimer: this blog is copyrighted by egojit and the blog Park. Please indicate the source for reprinting.