Latest

random

Difference Between MVC 4 and MVC 5 and MVC 6

Introduction
This article shows mvc4 vs mvc 5 vs mvc 6 and features of mvc framework. I am targeting ASP.Net MVC 3, MVC 4, MVC 5 and MVC 6 version. Here I have listed down features from next version of ASP.Net MVC 6 (ASP.Net vNext).
difference between mvc3 and mvc 4,difference between mvc 2 3 4 5,
ASP.NET MVC3 Vs MVC4 Vs MVC5 Vs MVC6
  • Single Programming Model for ASP.Net MVC and ASP.Net Web API.
  • Out of the box support for dependency injection.
  • Having support of side by side deployment of runtime and framework along with your web application.
  • Optimized for Cloud Computing.
  • Everything packaged with NuGet, including the .Net runtime itself.
  • New JSON based project structure.
  • In order to dynamically compile code, Roslyn compiler is used.
  • No need to recompile for every change. Just hit save and refresh the browser.
  • vNext is Open Source and supports running on multiple platforms including Linux and Mac.

MVC 5 Features
  • ASP.Net Identity for authentication and identity management
  • Attribute Routing is now integrated into MVC5
  • Bootstrap replaced the default MVC template
  • Authentication Filters for authenticating user by custom or third-party authentication provider.
  • With the help of Filter overrides, we can now override filters on a method or controller.

MVC 4 Features
  • ASP.net Web API
  • Modernized default project templates and other look & feel improvements
  • Based on jQuery Mobile, new Mobile Project Template introduced.
  • A truly Empty Project Template.
  • Support for adding controller to other project folders also.
  • Task Support for Asynchronous Controllers.
  • Controlling Bundling and Minification through web.config.
  • Support for OAuth and OpenID logins using DotNetOpenAuth library.
  • Support for Windows Azure SDK 1.6 and new releases.

MVC 3 Features
  • Razor View Engine introduced with a bundle of new features.
  • Improved Model validation.
  • New Project Templates having support for HTML 5 and CSS 3.
  • Having support for Multiple View Engines i.e. Web Forms view engine, Razor or open source.
  • Controller improvements like ViewBag dynamic property and ActionResults Types etc. Dynamic property is a new feature introduced in C# 4.0. ViewBag being a dynamic property has an advantage over ViewData that it doesn’t require checking NULL values. For detailed difference between ViewBag and ViewData can be found here.
  • Unobtrusive JavaScript approach that actually separates the functionality from presentation layer on a web page.
  • Improved Dependency Injection with new IDependencyResolver.
  • Partial page output caching.

I hope that this article would have helped you in understanding the difference between difference between mvc 4 and mvc 5,mvc4 vs mvc5 and features. Your feedback and constructive contributions are welcome. Please feel free to contact me for feedback or comments you may have about this article.

1 comment:

All Rights Reserved by Etechpulse © 2015 - 2016
Powered By Blogger

Contact Form

Name

Email *

Message *

Powered by Blogger.