Get Started With MVC——Who are you?

First of all ,let's see what kind of contents did MVC have?


What is it ?

  The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller.The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for creating Web applications.

  The ASP.NET MVC framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentication.

The most important parts of MVC

The MVC framework includes the following components:

    1、Models:Model objects are the parts of the application that implement the logic for the application's data domain.

    2、Views:Views are the components that display the application's user interface (UI)

    3、Controller:Controllers are the components that handle user interaction, work with the model, and ultimately select a view to render that displays UI.

what‘s it for ?

    The MVC pattern helps you create applications that separate the different aspects of the application (input logic, business logic, and UI logic), while providing a loose coupling between these elements.The pattern specifies where each kind of logic should be located in the application.The UI logic belongs in the view. Input logic belongs in the controller.bussiness logic belongs in the Model.

 why choose the MVC parttern ?

  The loose coupling between the three main components of an MVC application also promotes parallel development. for example, one developer can work with the View logic, the second developer can code for the controller logic ,and the third one can get start with the bussiness logic (model) . they can work at the same time . The work efficiency is greatly improved!

评论 28
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值