Introduction to the architecture of ASP. NET mvc4 + EF Series

Source: Internet
Author: User

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.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.