Implementing WCF Data Services

To implement an ADO.NET Data Service, you first create a Web application, add your data source, and finally add a service to your project. The goal of the next example is to expose data within a master-detail relationship from the Northwind database via an entity data model. Run Visual Studio 2010 and create a new Web application, naming the new project NorthwindDataService. Figure 42.1 shows the New project window to explain the selection.

Figure 42.1 Creating a new Web application for hosting a Data Service.

image

When the new project is ready, add a new entity data model to the project pointing to the Northwind database, ...

Get Visual Basic® 2010 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.