Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Microsoft Azure

You're reading from   Learning Microsoft Azure A comprehensive guide to cloud application development using Microsoft Azure

Arrow left icon
Product type Paperback
Published in Oct 2014
Publisher Packt
ISBN-13 9781782173373
Length 430 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Geoff Webber Cross Geoff Webber Cross
Author Profile Icon Geoff Webber Cross
Geoff Webber Cross
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Getting Started with Microsoft Azure FREE CHAPTER 2. Designing a System for Microsoft Azure 3. Starting to Develop with Microsoft Azure 4. Creating and Managing a Windows Azure SQL Server Database 5. Building Azure MVC Websites 6. Azure Website Diagnostics and Debugging 7. Azure Service Bus Topic Integration 8. Building Worker Roles 9. Cloud Service Diagnostics, Debugging, and Configuration 10. Web API and Client Integration 11. Integrating a Mobile Application Using Mobile Services 12. Preparing an Azure System for Production Index

Completing the admin sales website


The administrator website isn't getting as much attention as the customer website as we don't need it to drive the case study. I'm going to use the Visual Studio scaffold view and controllers for each entity in our data model to save time, using the following procedure for each entity:

  1. Add a reference to our Model project as we did for the customer website.

  2. Right-click on the Controllers folder and go to Add | Controller.

  3. Select MVC 5 Controller with views, using Entity Framework from the options and click on Add:

  4. Enter Controller name and select the related entity from the Model class list:

  5. For the first one, I'm going to click on New data context.... I'm not going to modify the TenantDbContext class as it's unrelated to our sales data model (I changed the name from the default to AdminWebsite.Models.SalesContext).

  6. Next, click on Add, and Visual Studio will build a controller for you with a full set of views for performing basic CRUD operations.

  7. Do the same for...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime