【发布时间】:2012-06-30 09:26:39
【问题描述】:
我正在使用 LINQPad 连接到本地 CRM 组织上的 ODATA 服务,但我不知道如何使用 LINQPad 执行“连接”或遍历关系。
这是我的网址
OrganizationData.svc/New_locationSet?$select=new_state_new_location/new_Region$expand=new_state_new_location
在浏览器中运行良好。这是我在 LINQPad 中所做的:
from l in new_locationSet
from s in l.new_state_new_location
select s.new_Region
但我收到一个错误:
An expression of type 'LINQPad.User.New_state' is not allowed in a subsequent from clause in a query expression with source type 'System.Data.Services.Client.DataServiceQuery<LINQPad.User.New_location>'. Type inference failed in the call to 'SelectMany'.
有什么想法吗?我发现 LINQPad OData 文档非常缺乏......
【问题讨论】:
标签: dynamics-crm-2011 odata linqpad