O'Reilly logo

Microsoft® SQL Server 2008 R2 Unleashed by Alex T. Silverstein, Chris Gallelli, Paul Bertucci, Ray Rankins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building Your Data Service

Now that you have your EDM, you can move forward and create your ADODS service. To accomplish this, right-click your web project again in Visual Studio and select Add New Item. Next, click on the Web node under the Categories heading on the left. Under templates, click ADO.NET Data Service and name your service file AW08Service.svc. This is illustrated in Figure 45.8.

Figure 45.8 Creating a new ADO.NET data service in Visual Studio 2008.

image

The code editor opens in Visual Studio with your new service’s code. This code will not compile as is because you need to specify a type argument for the generic base class from which ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required