I had been trying to get OData access to a source using Windows Phone 7 and repeatedly faced roadblocks while following a lot of examples on the web till i realised the difference between the CTP and the Latest production version between the OData client libraries.
A lot of the examples on the web to demonstrate the use of OData using Windows phone 7 target the CTP release of the OData client Libraries which had support for LINQ.
The same is detailed in the blog post by Chris Koenig at
http://chriskoenig.net/2010/10/30/odata-v2-and-windows-phone-7/
Additionally the WCF Data Services Team blog clearly states the major differences at
http://blogs.msdn.com/b/astoriateam/archive/2010/10/28/data-services-client-for-win-phone-7-now-available.aspx
LINQ is not supported presently in the client libraries. Period. So beware of the examples out there which target the CTP version.
I have found out a neat sample which actually uses the newest version effectively and have tested it out. You would find it at.
http://phonetocloud.info/2011/03/03/introducing-the-odata-client-library-for-windows-phone-part-3/
No comments:
Post a Comment