February 2010
Beginner
400 pages
11h 13m
English
Although in many cases you will want to work with the raw XML or JSON returned from a WDS service, it is easier to work with generated proxy classes. The generated proxy classes make it very easy to perform simple CRUD and query operations. Of course, behind the scenes they use HTTP.
Follow these steps to create an application to iterate through the Order objects using LINQ and the DataServiceContext class:
Add a new console application to the solution called Chapter9.ADOProxy.
Right-click the References folder.
Select Add Service Reference to add the URL your WDS is set up at (for example, http://localhost/Chapter9/MovieService.svc).
Select the BookEntities node in the Services ...