WebAPI OData include related entities without using $expand option

无人久伴 提交于 2019-12-22 18:37:12

问题


Expanding upon this earlier question

From the documentation here, it states:

"When you query an OData entity or collection, the default response does not include related entities."

Is there any way to include related entities without using the $expand option?


回答1:


No, there is no way to contain the related entities without using the $expand. But if you only want the related ones, you can use navigation property such as: ~/Categories(1)/Products



来源:https://stackoverflow.com/questions/22081436/webapi-odata-include-related-entities-without-using-expand-option

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!