Include related entities with WebAPI OData request
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Is there any way to include related entities in an OData request? For example, I have a Person entity and a Task entity. The relationship is one-to-many, with a Person having many Tasks. If I query the data with the OData request: /odata/ Person to get all the Person entities, the json returned does not include a Tasks property for each Person. However, if I query the data with the OData request: /odata/ Person ( 14 )/ Tasks I get the collection of Tasks that belong to that Person. What I'm hoping to be able to do is get ALL of the