Building Your Data Service

You can create your WDS service using the AdventureWorks2012 EDM you built in the previous section (“Introducing the Entity Framework”). To accomplish this, right-click your VS solution, select Add, New Project, and then, in the Web section, select ASP.NET MVC 4.0 Web Application. Name your project SQL2012MVC and click OK. On the ensuing New ASP.NET MVC 4 Project dialog, click on Basic under Select a Template. Leave the rest of the options as they are and click OK.

Using Solution Explorer, right-click your new MVC project and select Add, New Item. Next, click on the Web tab on the left (under the Installed Templates heading). Scroll down to near the bottom where you will find WCF Data Service. Click it and then name ...

Get Microsoft® SQL Server 2012 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.