我不确定是不是我没有找到正确的信息。但是Windows Phone 7上关于OData的故事似乎是不完整的。我按照这篇博客文章中的步骤进行操作:
http://dotnetspeak.com/index.php/2010/03/windows-phone-7-application-with-odata/ 如描述的那样,这生成了期望的客户端类型。不幸的是,当我将类和引用添加到我的Windows Phone客户端应用程序(System.Data.Services.Client.dll)并编译时,我收到以下错误消息:
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 数据服务。如果有其他方法、技术或库可用,我也愿意使用。