Consuming OData on Windows Phone

The MovieViewModel class uses virtually the same pattern for calling WCF Data Services that the Windows desktop clients use in Chapter 11. In particular, it uses the Windows Phone 7 version of the WCF Data Services client library to convert LINQ to REST queries into OData URI strings, and materializes the AtomPub response feed returned by the service into client-side entities exposed by the ViewModel. The primary difference from the Windows clients in Chapter 11 is that FlixPoll issues asynchronous calls to the service rather than synchronous calls. As we explained in Chapter 11, WCF Data Services supports both synchronous and asynchronous operation, but Windows Phone 7 clients support only asynchronous calls. ...

Get Programming Microsoft® SQL Server® 2012 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.