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)