Book Image

Mastering Cloud Development using Microsoft Azure

By : Roberto Freato, Marco Parenzan
Book Image

Mastering Cloud Development using Microsoft Azure

By: Roberto Freato, Marco Parenzan

Overview of this book

Microsoft Azure is a cloud computing platform that supports many different programming languages, tools, and frameworks, including both Microsoft-specific and third-party software and systems. This book starts by helping you set up a professional development environments in the cloud and integrating them with your local environment to achieve improved efficiency. You will move on to create front-end and back-end services, and then build cross-platform applications using Azure. Next you’ll get to grips with advanced techniques used to analyze usage data and automate billing operations. Following on from that, you will gain knowledge of how you can extend your on-premise solution to the cloud and move data in a pipeline. In a nutshell, this book will show you how to build high-quality, end-to-end services using Microsoft Azure. By the end of this book, you will have the skillset needed to successfully set up, develop, and manage a full-stack Azure infrastructure.
Table of Contents (15 chapters)
Mastering Cloud Development using Microsoft Azure
About the Authors
About the Reviewer

Building up your web frontend with Microsoft ASP.NET MVC

DocumentDB is a general-purpose database based on NoSQL purposes and features. We can better understand how it works and how it can be used by recreating the classic CRUD application in ASP.NET MVC. We can add a new web project, called WebFrontEnd, of type ASP.NET Web Application to the Visual Studio 2015 solutions. We can choose the .NET 4.6 MVC template. Visual Studio will create the entire web project to which we need to add all the references already added to the SqlToDocumentDb project previously described in this chapter.

ASP.NET MVC is a model-based framework, where the models are C# classes. We can start using DocumentDB as the database backend for the classic CRUD approach. Before starting, in the Web.Config file, add to the project an empty controller named ProductsController. The first thing to add is the DocumentClient accessor for DocumentDB (it is the same as in the previous project):

  private DocumentClient _client;