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

Allow NavigationPropertyPath and PropertyPath expressions to end in annotations of appropriate type

    XMLWordPrintable

    Details

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

      [Applied]

      Description

      Currently NavigationPropertyPath expressions must end with a navigation property name, and PropertyPath expressions must end with the name of a structural property.

      On the other hand annotations add "virtual (navigation)properties", so a NavigationPropertyPath expression could as well end with an annotation of type Edm.EntityType or any concrete entity type (or a collection of these), and a PropertyPath expression could end with an annotation of types Edm.ComplexType, Edm.PrimitiveType, or a concrete primitive type, enumeration type, or complex type, or a type definition (or a collection of these).

      An example for "virtual navigation properties" is given in https://tools.oasis-open.org/issues/browse/ODATA-278 . The aim was that we can use "virtual navigation properties" (and "virtual properties") also as a NavigationPropertyPath (and as a PropertyPath ). Currently the expressions
      <PropertyValue Property="NavigationPath" NavigationPropertyPath="@ACR.Supplier" /> and
      <PropertyValue Property="NavigationPath" NavigationPropertyPath="@ACR.PurchaseOrders" />
      in the example are invalid, because the NavigationPropertyPath expressions must end with a navigation property name.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: