Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 24. Network Services > Consuming OData

Consuming OData

The OData tools that accompany the Windows Phone SDK have been much improved since the first release of Windows Phone. In the first release, an external tool had to be downloaded and used to generate the OData service proxies. In addition, the LINQ interpreter on the phone did not support closures on local variables, which meant that using a variable inside a LINQ expression caused a runtime failure. That made LINQ to OData on the phone mostly unusable. This has since been rectified, and service proxies can now be generated using the Add Service Reference dialog.

Before you see how to create an OData consumer using LINQ, you should become familiar with the OData URI syntax.

OData URI Structure

A URI used by an OData consumer has up to three significant parts, as follows:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint