Learn the ASP. NET MVC Framework Secret Note-what is the MVC pattern

Source: Internet
Author: User

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

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.