【发布时间】:2016-11-22 15:06:06
【问题描述】:
如何在 OData 中跳过、选择、置顶 $expand?为什么以下不起作用?
http://services.odata.org/V4/(S(s2sx534tmya3oqnyfxumtyl1))/TripPinServiceRW/People?$expand=Friends($select=Emails&$top=1&$skip1)
但如果我在展开时只使用$select 或$top 或$skip,它就可以工作。例如,以下工作。为什么以上不起作用?我认为这是 Odata 限制。
http://services.odata.org/V4/(S(s2sx534tmya3oqnyfxumtyl1))/TripPinServiceRW/People?$expand=Friends($select=Emails)
http://services.odata.org/V4/(S(s2sx534tmya3oqnyfxumtyl1))/TripPinServiceRW/People?$expand=Friends($top=1)
【问题讨论】:
标签: asp.net-web-api odata