MVC Framework Introduction

December 02, 2017 0 Comments A+ a-

ASP .Net

MVC Framework / Model View Controller

  • It stands for Model View Controller.
  • MVC framework is used to develop web application.
  • This framework developed by Microsoft on 2007.
  • MVC is an architectural pattern that can be separate tree main component such as Mode, View and Controller.

MVC Workflow

Please find below picture (Fig-1.1) for your reference.
MVC framework WorkFlow
Fig -1.1

Model

  • It is one main component in MVC framework.
  • In other word it is data represent layer in MVC framework that mean It can able to handle data between View and Controller.

Controller

  • It is another main component in MVC framework.
  • It can able to process the all business logic, manipulating the data and respond to incoming request.
  • It is worked bridge between Model and Controller.

View

  • It is last main component in MVC framework.
  • It is the user interface layer in MVC framework.
  • This component contains UI logic of application such as from details, form component details etc.

Advantages of MVC

  • Extensibility
    • Separation of component Model View Controller.
    • Parallel development process.
    • Modification does not affect the entire model.
  • Easy to provide maintenance
  • Testability
    • Support Test Driven Development (Write your own test case for unit testing).
  • Powerful Routing System
    • Easy to develop SEO-friendly URL.
  • Modern API
    • Support for asynchronous technique.
  • ASP.NET MVC Is Open Source

Disadvantages of MVC

  • Increased complexity to implement.
  • Cost is more for development time due to need multiple programmers.