What is difference between MVC1,MVC2,MVC3,MVC4,MVC5 and MVC6? (MVC Interview Questions)

What is difference between MVC1,MVC2,MVC3,MVC4,MVC5 and MVC6? (MVC Interview Questions)

Introduction:

Microsoft had introduced ASP.NET MVC in .Net 3.5, since then lots of new features have been added.This article introduces to Features for MVC newest and oldest versions and also will we have many differences  between MVC1, MVC 2, MVC 3, MVC 4, MVC 5 and MVC 6 and let’s explore in detail without writing the code.

MVC 1:

  • MVC architecture with webform engine
  • Ajax Helpers
  • HTML Helpers
  • Routing
  • Auto binding

MVC 2:

  • Client-Side Validation
  • Asynchronous Controllers
  • Areas/Regions
  • Scaffolding
  • DataAnnotations attributes
  • Model-Validator Providers
  • Custom template
  • Html helper methods with lambda expression
  • Html.ValidationSummary Helper Method
  • Binding Binary Data with Model Binder

MVC 3:

  • Razor view engine
  • HTML 5 enabled templates
  • Global filters
  • Unobtrusive javascript validation
  • Remote validation
  • Dependency resolver for IoC
  • ViewBag
  • Support for Multiple View Engines
  • Model Validation Improvements

MVC 4:

  • Mobile project template
  • Bundling and minification
  • ASP.NET Web API
  • Support for Windows Azure SDK

MVC 5:

  • Attribute based routing
  • Authentication filters
  • Asp.Net Identity
  • Bootstrap support
  • Filter overrides

MVC 6:

  • ASP.NET MVC and Web API has been merged in to one
  • New JSON based project structure
  • Dependency injection is inbuilt and part of MVC
  • No need to recompile for every change. Just hit save and refresh the browser.
  • Compilation done with the new Roslyn real-time compiler
  • Side by side – deploy the runtime and framework with your application
  • Everything packaged with NuGet, Including the .NET runtime itself.

 

SEE MORE

6 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *