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

Support navigation properties on complex types

    XMLWordPrintable

    Details

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

      [Proposed]

      Description

      Today navigation properties must be direct children of the entity. We should support navigation properties being defined on properties grouped into a complex type. For example:

      <ComplexType Name="Address">
      <Property Name="Street" Type="Edm.String" />
      <NavigationProperty Name="City" Type="MyModel.City" />
      <NavigationProperty Name="Region" Type="MyModel.Region" />
      <NavigationProperty Name="Country" Type="MyModel.Country" />
      </ComplexType>

      If a type <Person> has an Address, then you could express the navigation property binding as:

      <EntitySet Name="People" Type="Person">
      <NavigationPropertyBinding Path="Address/City" EntitySet="Cities"/>
      <NavigationPropertyBinding Path="Address/Region" EntitySet="Regions"/>
      <NavigationPropertyBinding Path="Address/Country" EntitySet="Countries"/>
      </EntitySet>

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: