MVC
1. MVC stands for Model View Controller.
2. MVC is a design pattern which are used to develop the applications.
Design Pattern
1. Design pattern is a pre-defined solution for the problems that occurs in software development.
2. These design pattern can be used in any application development based on the requirement.
Some of the important categories of Design Pattern
1. Architectural Design Pattern
2. Behavioural Design Pattern
3. Conceptual Design Pattern
4. Structural Design Pattern
MVC Design Pattern comes under Architectural Design Pattern.
WHY MVC?
1. MVC Design Pattern provides the solution for the applications that are using GUI programming.
2. In MVC, there is a separation of code. UI logic is separated from the business/database logic.
3. Due to this we can reduce the dependency or complexities of GUI logic on other parts of the application.
4. Easy to perform modifications since application is divided into different modules.
Note: MVC Design Pattern is suitable if the application requires more GUI modifications frequently.
MODULES IN MVC
1. MODEL
- It is responsible for database related logic.
- Model will communicate with database and sends the result to controller.
2. VIEW
- It is responsible for GUI related logic.
- It will focus how the data will present to the end user.
3.CONTROLLER
- Controller is responsible for complete execution flow of the application.
- It will communicate with models and also with views
ASP.NET MVC
- ASP.NET MVC is an open source framework.
- Microsoft was introduced MVC Design Pattern with ASP.NET in 2007.
- Using ASP.NET MVC, we can develop Web Applcations with MVC Design pattern.