← Prev in month ← Prev in thread
Next in thread → Next in month →

[OASIS Issue Tracker] Created: (ODATA-244) Support navigation properties on complex types

From
OASIS Issues Tracker <>
Date
2013-02-05T21:00:05+00:00
ID
1284543223.8761360097994654.JavaMail.tomcat55@mw00
Thread
[OASIS Issue Tracker] Created: (ODATA-244) Support navigation properties on complex types
Support navigation properties on complex types
----------------------------------------------

                 Key: ODATA-244
                 URL: http://tools.oasis-open.org/issues/browse/ODATA-244
             Project: OASIS Open Data Protocol (OData) TC
          Issue Type: Improvement
          Components: OData Protocol v1.0
    Affects Versions: WD01
         Environment: [Proposed]
            Reporter: Michael Pizzo
            Assignee: Michael Pizzo
            Priority: Minor
             Fix For: WD01


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>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
← Prev in month ← Prev in thread
Next in thread → Next in month →