Thursday, January 13, 2011

MVC Pattern

MVC stands for Model-View-Controller. MVC is very famous software architecture which splits the whole software structure into three main domains, i.e. Model, View, & Controller. Model is related to the data model, View is basically the UI to interact with model and Controller is the supervisor which bridges the gap between Model and View. Model can be as simple as a POCO. View can be a simple HTML with placeholders to plug the data from model. Controller can receive the user's request and call proper mechanism to send the view with the model data.
In the current version of MVC3, we have a couple of view engines which are ASPX view engine and the Razor view engine. One of the major benefits to use MVC is test driven development. You can create mocks to test different areas of the whole solution.

For further details, you can visit www.asp.net/mvc

No comments:

Post a Comment