Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
文档指出,使用 web api,您不会在微风查询中使用 .expand,它将返回导航属性。这很好用,但你如何防止它返回不想要的孩子。好像我在某处读过你可以限制将返回的深度,但我找不到它。
只要您不延迟加载导航属性,Web api 就不会在您的实体上发送任何导航属性。请参阅此处的延迟加载讨论。
然后可以使用Breeze EntityQuery.expand方法来准确指定您想要关闭的导航属性。