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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access