Allow expressing that a term can be applied any collection and is not restricted to entity sets

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major
    • V4.01_WD01
    • Affects Version/s: V4.0_OS
    • Component/s: Protocol
    • Environment:

      Annotations

    • Hide

      Add AppliesTo value "Collection" to clearly indicate that this term can be applied to any collection of entities, not only entity sets.

      The new value is intentionally vague, i.e. not differentiated into EntityCollection, ComplexCollection, PrimitiveCollection because this optional restricition will typically be implied by the term semantics.

      Show
      Add AppliesTo value "Collection" to clearly indicate that this term can be applied to any collection of entities, not only entity sets. The new value is intentionally vague, i.e. not differentiated into EntityCollection, ComplexCollection, PrimitiveCollection because this optional restricition will typically be implied by the term semantics.
    • Show
      https://www.oasis-open.org/apps/org/workgroup/odata/download.php/59031/odata-csdl-xml-v4.01-wd01.docx https://tools.oasis-open.org/version-control/browse/wsvn/odata/trunk/4.01%20spec/vocabularies/Org.OData.Core.V1.xml

      We have a number of annotations (for example, in the capabilities vocabulary) that target entity sets. Most of these annotations can similarly be applied to containment relationships and singletons. How does the service apply such annotations to containment/singletons?

      AppliesTo is only a hint, so the Capability annotations can already applied to non-containment navigation properties that are just collections of entities and not entity sets.

      Still open: does AppliesTo="EntitySet" imply that the annotation can target any collection of entities, or do we need an additional AppliesTo value, e.g. "Collection"?

            Assignee:
            Michael Pizzo (Inactive)
            Reporter:
            Michael Pizzo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: