Windows Phone 7 上的 OData
我不确定我是否只是没有找到正确的信息。但 Windows Phone 7 上的 OData 故事似乎并不完整。我已按照此博文中的步骤操作:
http://dotnetspeak.com/index.html php/2010/03/windows-phone-7-application-with-odata/
这生成了所描述的预期客户端类型。不幸的是,当我添加类和对 Windows Phone 客户端应用程序 (System.Data.Services.Client.dll) 的引用并进行编译时,我收到以下错误消息:
The type or namespace name 'DataServiceQuery' does not exist in the namespace 'System.Data.Services.Client' (are you missing an assembly reference?)
那么我是否遗漏了某些内容?我所需要的只是能够查询 odata 数据服务。如果有其他方法、技术或库,我愿意使用它。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
OData v2 于上周发布(在此处阅读公告)。 Chris Koenig 有一篇非常好的文章总结了 他的博客文章在这里。您需要从 Codeplex 下载最新的 OData 客户端库,特别是此修订版。 Chris Koenig 的教程应该会为您指明正确的方向。始终记住添加对 OData 客户端程序集的引用。
HTH,indyfromoz
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