Introduction to ASP.NET MVC
Join the DZone community and get the full member experience.
Join For Freeoverview
asp.net mvc is an open source platform for building web applications using the mvc architecture introduced by microsoft. mvc is nothing but model-view-controller and initially was called by the name “thing-model-view-editor".
figure: model-view-controller
the mvc design pattern is defined in three layers like model, view and controller.
- model : it is a collection of classes or library files for the business layer with a specific domain functionality. the business layer contains a set of business rules, entities and components for data manipulation purposes.
- view: it is a representation of an application user interface (in other words presentation layer).
- controller: it is a collection of classes that handle interaction from the user request and the response to display the information to the view.
microsoft first released the asp.net mvc1 and included code development and test driven development (tdd) like unit tests.
microsoft's second release of the asp.net mvc2 provides automatic scaffolding with customizable templates, attribute-based model validation on both client & server and strongly typed html helpers.
microsoft's third release of the asp.net mvc3 provides a razor view engine, data annotation and improved model validation, flexibility, dependency resolutions, global actions filters, support javascript, jquery validation, json binding and nuget.
microsoft came up with asp.net mvc4 that provides asp.net webapi, default project templates, mobile project template using jquery mobile and so on.
microsoft later released asp.net mvc5 that provides one asp.net, asp.net identity, bootstrap and authentication filters and attribute routing.
asp.net mvc evolution table
s.no |
version |
features |
1 |
mvc6 |
|
2 |
mvc5 |
|
3 |
mvc4 |
|
4 |
mvc3 |
|
5. |
mvc2 |
|
6 |
mvc1 |
|
conclusion
this article helps to explain asp.net mvc and respective versions in visual studio.net.
Opinions expressed by DZone contributors are their own.
Comments