Monday, April 20, 2020

What is ASP.NET MVC?

ASP.NET MVC is basically a framework for developing web applications that are based on Model-View-Controller Pattern, however it is built on top of ASP.NET framework. Hence, you can use features of ASP.NET while working on ASP.NET MVC applications.
Advantage of ASP.NET MVC
  • Separation of Concern: In this, Views(UI)- Controllers(Business logic)- Models (Data Storage) are separate.
  • It supports Test Driven Development(TDD)
  • It supports reusability.
  • It provides better performance than ASP.NET because of the View state.
MVC Pattern
Original name of MVC pattern was Thing-Model-View-Editor when it was launched in 1979, however latter it is simplified as Model-View-Controller. It supports Separation of concern (SoC) by separating UI, Business Logic and Data storage.
                             What is the right MVC diagram for a web application? - Stack Overflow

  • Model
    Model is the part of your application that handles all logic sections; such as a request from user to insert or retrieve data from database
  • ViewThis specifies the UI of application. It helps you describe how your UI is going to be displayed. Views are created from Model Data and the main role of View is display data to Users.
  • Controller
    These are the classes, which controls the flow of application, execution of specific business logic.This handles all validations from users, reads data from view and also sends data to Model.

No comments:

Post a Comment