Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Optional related entity - why 'Error'?

$
0
0

I am modifying a Query against an entity provided by an OData source.  An entity 'A' has an optional relationship to another entity 'B'.  i.e. 'A' has an (nullable) foreign key column and a navigation property to 'B'.

 

When I try and expand the 'B' navigation property in the Query Editor of 'A' to retrieve just one of 'B's properties, I see 'Error' for all those cases where the foreign key/navigation property does not point to anything in 'B'.  When there is a valid relationship link between 'A' and 'B', the navigation property works as I expect.

 

Is this by design?  I would argue that it should not be flagged as an error because the relationship is optional.

 

 


Viewing all articles
Browse latest Browse all 213819

Trending Articles