1.1.2What isMVCMode
the founder of MVC is Trygve M.h.reenskau, a Norwegian computer expert and honorary professor at the University of Oslo. MVC is a software architecture model that he proposed in 1979 for GUI applications.
MVC embodies the basic design policy of "separation of concerns", and he divides a function of human-computer interaction design into Model,Controller , and View Three parts, each of them have the following responsibilities.
1.Model is the encapsulation of application state and business logic, which we can understand as a domain model that contains both data and behavior. the Model accepts the Controller 's request and completes the corresponding business process, and when the application state changes, it can turn to the View issue the appropriate notification.
2.view
3.view Snapping to user interaction will be forwarded directly to controller, ui logic. If you need calls that involve business functions, controller The model ui after processing, controller view or create an additional view corresponds to user interaction.
In the traditional MVC model, There is a direct connection betweentheview and the model , andview can not only call directly Model queries its status information, and when the model state changes, he can also directly notify the View.
Learn the ASP. NET MVC Framework Secret Note-what is the MVC pattern