O'Reilly logo

Programming Microsoft® SQL Server® 2012 by Leonard Lobel and Andrew Brust

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required