ASP.NET MVC 6 and ASP.NET MVC 5
In this presentation discuss about several significant changes or difference between ASP.NET 5 and ASP.NET MVC 6.
6 5
ASP.NET MVC APIs
• ASP.NET MVC 5 will provide WEB API while developing web apps.
• ASP.NET MVC 6 will provide single aligned stack and web API.
Below figure you can easily understand
ASP.NET MVC APIsASP.NET MVC WEB API
Create ASP.NET MVC 5 Project
Create ASP.NET MVC 6 Project
Tag Helpers
• Both versions are a better option to using traditional MVC 5 tag helpers.
• This features the innovative impact for create your views in an ASP.NET MVC apps.
@Demo1 Mytutorial.Models.Product
@using (Html.BeginForm()){ <div> @Html.LabelFor(m => p.Name, "Name:") @Html.TextBoxFor(m => p.Name) </div> <input type="submit" value="Create" />}
Example
Different Folder Structure
If you use ASP.NET MVC 6 on right side panel web.config option to watch. After first demo to create on folder structure with settings and how to execute your code in your first demo.
In ASP.NET MVC 5 are many changes in look folder structure.
ASP.NET Core MVC
• ASP.NET core is easily implement of cross platform of .NET that is essentially being driven by ASP.NET 5.
• Now favor to will build ASP.NET MVC 6 against ASP.NET core and run both OS either window or UNIX.
ASP.NET Core 1.0
OS
ASP.NET Web Forms
In ASP.NET MVC 5 web forms is no longer necessary to continue developing web forms in visual studio 2015.
View Components in MVC 6
• ASP.NET MVC 6 is one of the new feature introduced to call view components. View components implement the same separation of review and testability comfort found between a controller and view.
• In ASP.NET MVC 5 never really supported a synchronicity
Support AngularJS
• AngularJS support in ASP.NET MVC 5 for GruntJS makes asp.net a superb server-side framework for developing client side AngularJS apps.
• You can collaborate with an MVC 6 controller from an AngularJS $resource using REST.
ASP.NET MVC
Dependency Injection Framework
Today in ASP.NET MVC 5 and 6 apps, dependency injection framework is integral. Just build some service and get ready to use DI inbuilt.
Obj. A Obj. B
Obj. container
Created CreatedDependency Injection(DI)
StartUp.cs File
Contact Us"Royal Square"1st Floor, Off No. 110,Nr. Shilp Tower, Tagore Road,Rajkot - 360 001Gujarat - India
“Titanium Square” 3rd Floor,Office No. B-302, S.G. Highway,Beside Parsoli Motors. Nr. Thaltej Crossing, Ahmedabad – 380 054 Gujarat – India
Corporate Office Development Centre
Global Operation• USA• Canada• Europe• UK• Singapore• Hong
Kong
• Japan• UAE• Australia• New
Zeeland• Saudi
Arabia
Thank You
Q ATechnoligent