Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Expanding a navigation property which navigates to a contained entity set results in an exception when accessing the navigation property.
AbstractStructuredInvocationHandler assumes that when a ClientInlineEntitySet is retrieved from the server that the navigation property will return an EntityCollection, but for contained entity sets the navigation property will return an AbstractEntitySet.
I see two possibilities:
1. The user has to create a second getter for the navigation property which returns an EntityCollection. The drawback is that the caller has to know how the entity was retrieved and then call the appropriate getter.
2. The returned AbstractEntitySet will contain the inline retrieved entities. Then there is the questions how some methods of AbstractEntitySet behave. At least some of the methods like count or execute should not make a server request but operate on the already retrieved collection