Open khodaie opened 7 years ago
It has been a long time. Any updates on this issue?
Any updates ?
Same issue on my end. Attempting to expand fields only in the inherited subclasses results in a partial 200 response JSON and an error The EDM instance of type '<expanded class name here>' is missing the property '<a field name from the expanded class here>'.
. Furthermore, the actual executed SQL doesn't perform a JOIN to retrieve the information in the first place.
Is TPH not supported?
The
$expand=*
term expands all properties of an entity. But in the TPH pattern, it expands only the base class reference properties:Executing ODATA query:
/odata/Persons?$expand=*
only expands thePlace BirthPlace
reference property; not theCustomer.Job
norEmployee.Post
But expanding a single entity works well as expected:
/odata/Persons(411)?$expand=*
expandsPlace BirthPlace
and eitherCustomer.Job
orEmployee.Post
based on the type of the entity