我不确定我是否只是找不到正确的信息。但是,在WindowsPhone7上的OData故事似乎是不完整的。我已经遵循了这个博客帖子中的步骤:
http://dotnetspeak.com/index.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数据服务。如果有其他方法、技术或库,我愿意使用它。