Creating a Client Application

The goal of the next example is to show how you can perform read/insert/update/delete operations against a Data Service from a client. Follow these steps:

1. Add to the current solution a new Console project and name it NorthwindClient.

2. Right-click the project name and select Add Service Reference. This adds a reference to the Data Service similar to what happens for WCF services. Because in our example the service is available in the current solution, just click Discover. In real applications you will instead type the Uri of your service. Figure 42.6 shows how the Add Service Reference dialog appears now.

Figure 42.6 Adding a reference to the ADO.NET Data Service.

3. Replace the default identifier in the Namespace ...

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.