. NET abstract Factory mode Micro understand: teach you to implement abstract factory in project

Source: Internet
Author: User

While learning about MVC recently, something about the project in MVC is related to abstract patterns, today it's a little bit of a personal understanding of the abstract factory model to facilitate the understanding of colleagues and bloggers who are involved in MVC and Factory mode. Deficiencies, but also please treatise!

First of all, briefly explain some of the three-level relationship, I believe that the blog to watch the article for the three-layer design is already in the heart, I would like to briefly explain:

User Interface Presentation layer (WEB)

Business Logic Layer (BLL)

Data access Layer (DAL)

1: Data access layer: mainly to the original data (database or text files, such as the form of data storage), rather than the original data, that is, the operation of the data, rather than the database, specifically for the business logic layer or presentation layer to provide data services.

2: Business logic Layer: mainly for the operation of specific problems, can also be understood as the operation of the data layer, the data business logic processing, if the data layer is a building block, the logic layer is the building of these blocks.

3: The presentation layer: The main means of the web, can also be represented as a WinForm way, the web can also be expressed as: ASPX, if the logic layer is very strong and perfect, no matter how the presentation layer to define and change, the logic layer can provide a perfect service.

The following describes the role of some abstract factory patterns, please look at the picture (the picture for my teacher, here to give you a simple look)

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.