DDD-based. NET project Setup

Source: Internet
Author: User

The first time to write a blog a little excitement, nonsense not much to say first:

    1. 01_client: A project that stores UI-related items, such as ASP. NET MVC or the associated web model and view model.
    2. 02_hosting: Store service-related items, either direct service,remoting service,web SERVICE,WCF service or Web API service.
    3. 03_domain: All entities related to business logic and operations (design classes and relationships between classes based on OO ideas).
    4. 04_infrastructure: Non-business functional Framework (COMMON,AOP, Ioc,logging,encryption,scheduler).
    5. 05_database: Database project (contains all database scripts for easy development, deployment, and maintenance).
    6. 06_tests: All test items (data access test, framework test, Business logic test, service test, and view Model test).
    7. 07_referencelibs: Project-related external references.
    8. 08_tools: Simple tools such as nunit for easy development, testing, and deployment.
    9. 09_documents: Store project related documents, data dictionary, interface API, etc.

In the business Domain layer is divided into Model,repository,service three layer, each layer before using interface to interact with the IOC function in the spring.net to dynamically inject the interface implementation class, so as to achieve the decoupling between the layers.

Model layer: Use the Entity Framework framework to define database context and table correspondence between different databases, and define business entity classes

Repository layer: Through the call model layer interface to achieve a variety of business entity classes of additions and deletions and other functions.

Service layer: The main processing business logic, and call the Repository layer interface to manipulate the data

DDD-based. NET project Setup

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.