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

13.4 Add example for navigation property bindings for containment navigation property

    XMLWordPrintable

    Details

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

      where Orders contained OrderDetails:

      <EntitySet Name="Orders" Type="Sales.Order">
         <NavigationPropertyBinding Path="OrderDetails/Product" Target="Products"/>
      </EntitySet>

      Show
      where Orders contained OrderDetails: <EntitySet Name="Orders" Type="Sales.Order">    <NavigationPropertyBinding Path="OrderDetails/Product" Target="Products"/> </EntitySet>

      Description

      Add example along the following lines:

      • Bar has NavigationProperty Baz of type Foo with ContainsTarget=True
      • Foo has NavigationProperty Gux of type Ser with ContainsTarget=False

      <EntitySet Name=“Bars“ EntityType=“_this.Bar“>
      <NavigationPropertyBinding Path=”Baz/Gux” Target=”Sers”
      </EntitySet>

      <EntitySet Name=”Sers” EntityType=”_this.Ser” />

        Attachments

          Activity

            People

            • Assignee:
              mikep Michael Pizzo
              Reporter:
              handl Ralf Handl
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: