The MVC pattern is: Model-View-controller
- Model: Is the part of the application that handles application data logic. Typically model objects are responsible for accessing data in the database
- View: Is the part of the application that handles the display of data, typically a view created from a model database
- Controller: Is the part of the application that handles user interaction. Typically the controller is responsible for reading data from the view, controlling user input, and sending data to the model
This is one of the back-office management solutions that I used to learn about MVC. For this solution, the use and function of the Project class library
- BLL Class Library: This is our implementation of the business logic layer, the implementation of the database access layer of the abstract implementation
- Common class Library: specifically used to store some common information classes, such as: MD5 encryption algorithm class, file upload, format conversion and so on.
- Dal class Library: Implementation of the database access layer. We need to operate the database (additions and deletions). So we encapsulate a base interface. Used to implement the operation of the database. Then the other database access layer objects only need to inherit from the base interface to implement the operation of the database.
- IBLL Class Library: The business Logic interface layer, which is used to store the interface of the business logic, realizes the idea and the database access layer's thought is consistent.
- Idll class Library: The database access interface layer, used to hold the interface information of the database access layer, because we operate on the database, so encapsulates a base interface, and then let other objects inherit from the base interface
- Model class libraries: Models for storing database table entities. Here I am using the EF (Entity Framework model) framework to manipulate the database
- UI layer: Is the presentation layer, responsible for the display of the page. I used the Mvc4+easyui implementation of the interface in the practice. In the UI layer package contains the MVC framework (Model-view-controller)
Beginners Learn MVC Record: Understand the role and usage of various libraries