简体   繁体   中英

OData on Windows Phone 7

I'm not sure if maybe I'm just not finding the correct information. But the OData story on windows phone 7 seems to be incomplete. I've followed the steps in this blog post:
http://dotnetspeak.com/index.php/2010/03/windows-phone-7-application-with-odata/

This generated the expected client types as described. Unfortunately, when I add the class and reference to my windows phone client app (System.Data.Services.Client.dll) and compile, I'm receiving the following error message:

The type or namespace name 'DataServiceQuery' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)

So am I missing something? all I need is to be able to query an odata data service. If there is another way, technique, or library, I'm open to using that.

OData v2 was released last week ( Read the announcement here ). Chris Koenig has a very nice post summarizing the changes in his blog post here . You need to download the latest OData client library from Codeplex , specifically this revision . Chris Koenig's tutorial should point you to the right direction. Always remember to add a reference to the OData client assembly.

HTH, indyfromoz

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM