Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-86

Allow TypeAnnotation only to target entity types and complex types

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: CSDL XML
    • Labels:
      None

      Description

      Type annotations annotate a model element with a type term (either an edm:EntityType or an edm:ComplexType can be used as a type term). A type term implies that a type can be instantiated from the annotated element.
      Currentlly the specifications allows to annotate the following model elements via type annotations:
      edm:Annotations
      edm:ComplexType
      edm:EntitySet
      edm:EntityType
      edm:EnumType
      edm:Function
      edm:FunctionImport
      edm:NavigationProperty
      edm:Parameter
      edm:Property
      edm:ValueTerm

      This should be restricted to the following two model elements:
      edm:ComplexType
      edm:EntityType

      Reason: For all other model elements it's unclear/undefined how a new type can be instantiated from the annotated element.
      If we just want to extend an existing model element with additional data we can annotate it with ValueAnnotations.

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              martinzurmuehl Martin Zurmuehl
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: