-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Context URL of single-valued containment navigation property #2000
Comments
Also for single-valued containment. The suffix is omitted for singletons, but these are always top-level in the container. A single-valued containment navigation property contains a single entity, not a singleton. (By contrast, a non-containment navigation property can target a singleton through a suitable navigation property binding.) |
I disagree: a singleton is basically a single-valued containment navigation property of the entity container. They behave the same in all other aspects, why should their context URL behave differently? |
Because [OData-CSDL, section 13.3] says:
Perhaps change that? |
That statement is correct. And single-valued containment navigation properties are nested single-valued resources. So rather clarify the section on context URL and use the service-relative path of the single-valued resource as its context URL, consistently without the suffix |
@mikepizzo and @Hubert-Heijkers would expect same treatment as singletons, without suffix |
Section 10.3 Entity states that
and
Is the suffix
/$entity
only relevant for collection-valued containment, or also for single-valued containment?Clarify and add single-valued example.
The text was updated successfully, but these errors were encountered: