问题
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