Wcf 如何在OData中对展开的实体执行投影?

Wcf 如何在OData中对展开的实体执行投影?,wcf,service,odata,netflix,Wcf,Service,Odata,Netflix,当我执行下面的OData查询时,我看到一个特定的Netflix标题,其奖励已扩展 http://odata.netflix.com/Catalog/Titles?$filter=Name eq 'The Name of The Rose'&$expand=Awards&$select=Rating,Awards 请注意,我只预测了标题的评级属性 我还可以预测扩展奖励的($select)特定属性吗?也就是说,对于扩展中的每个奖项,只显示类别和年份属性。当然,只需修改查询以包括:

当我执行下面的OData查询时,我看到一个特定的Netflix标题,其奖励已扩展

http://odata.netflix.com/Catalog/Titles?$filter=Name eq 'The Name of The Rose'&$expand=Awards&$select=Rating,Awards
请注意,我只预测了标题的评级属性


我还可以预测扩展奖励的($select)特定属性吗?也就是说,对于扩展中的每个奖项,只显示类别和年份属性。

当然,只需修改查询以包括:

$select=Rating,Awards/Category,Awards/Year

下面是使用Asp.Net Odata和top、filter、select和select展开属性的示例

?$top=20&$filter=contains(Name,'A')&$select=Name,Email&$expand=Child($select=ChildPropertyName)