Summary

This chapter started by showing the basics of a website processing from client to server using ASP.NET. We then introduced the new ASP.NET 5, which works with both the full .NET Framework and the new .NET Core. You can use it to build and run applications on Windows, Mac/iOS, and Linux/Android.

The new project template for ASP.NET 5 includes package managers for both server and client libraries. The server libraries are managed through the familiar NuGet. Client libraries now use the open source package manager, Bower (along with NPM and Gulp for related tasks).

ASP.NET 5 MVC 6 projects provide a powerful programming model for handling user requests. This includes a controller for processing a routed request, selecting a model object, and combining model with view to return to the user. We also looked at reuse with partial views, component views, and view models.

Visual Studio provides tooling that makes adding ASP.NET MVC features straightforward. You can use the Razor syntax and @Html helper methods for easily creating page markup. There is support for generating your database using EF7 migrations and the dnx . ef commands. You can also use the dnx . gen tool to create a controller and set of views based on your data model.

In the end, web developers should be excited by this latest release—the first since Microsoft open sourced ASP.NET.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset