← Prev in month ← Prev in thread

[OASIS Issue Tracker] Updated: (ODATA-304) Add TargetKey attribute to <PropertyRef> within a <ReferentialConstraint

From
OASIS Issues Tracker <>
Date
2013-03-21T14:53:01+00:00
ID
1717606861.7011363877570134.JavaMail.tomcat55@mw00
Thread
[OASIS Issue Tracker] Updated: (ODATA-304) Add TargetKey attribute to <PropertyRef> within a <ReferentialConstraint
[ http://tools.oasis-open.org/issues/browse/ODATA-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Pizzo updated ODATA-304:
--------------------------------


Even better, further simplify by allowing multiple <ReferentialConstraint> elements to be children of the <NavigationProperty>, one for each foreign key, with attributes "Property" and "RelatedProperty"

 <NavigationProperty Name="Category" Type="Self.Category" Nullable="false">
  <ReferentialConstraint Property="CategoryID" RelatedProperty="Id"/>
  <OnDelete Action="Cascade" />
 </NavigationProperty>

instead of:

 <NavigationProperty Name="Category" Type="Self.Category" Nullable="false">
  <ReferentialConstraint>
   <PropertyRef Name="CategoryID" />
  </ReferentialConstraint>
  <OnDelete Action="Cascade" />
 </NavigationProperty>


> Add TargetKey attribute to <PropertyRef> within a <ReferentialConstraint
> ------------------------------------------------------------------------
>
>                 Key: ODATA-304
>                 URL: http://tools.oasis-open.org/issues/browse/ODATA-304
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData CSDL
>    Affects Versions: V4.0_WD01
>         Environment: [Proposed]
>            Reporter: Michael Pizzo
>             Fix For: V4.0_WD01
>
>
> Today we require that a <ReferentialConstraint> element contain the same number of <PropertyRef> elements, in the same order, as the <PropertyRef> elements of the <Key> of the related entity.
> This is the only place where we rely on the ordering of the properties of the key.
> We should instead add a TargetKey attribute to explicitly specify the key property of the related entity to which a <PropertyRef> within a <ReferentialConstraint> applies.

-- 
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