Given an entity with a navigation property, is there a way to tell if the empty navigation property is because the child entities have never been loaded, as opposed to the collection having been loaded and just being empty?
eg: I load a page with a list of entity A. Each entity A has a navigation property being a collection of entity B. I don't need to load the navigation property for the list as it might be a large number of child entities so I don't choose to expand the navigation property. However, I want to then show a 'detail' page regarding a single entity A, where I DO want to show the list of entity B. When loading that page, I can use fetchByEntityKey
to get the original entity A from the cache, but that cached entity does not include the navigation property collection. Therefore the page won't show the child properties. Is there a way to tell that the navigation property was never loaded, as opposed to the collection just being empty, so I can choose whether to refresh the navigation property with loadNavigationProperty
or some other query?