Allow complex properties or components of complex properties as parts of a referential constraint

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

      [Proposed]

      Complex types may be used to semantically structure an entity type, e.g. grouping an Amount and a CurrencyCode into a complex type MonetaryAmount.

      Properties of complex types need to take the role of a dependent in a referential constraint, expressing e.g. that the CurrencyCode of the above complex type must only take values defined by the key property Code of a Currency entity type:

      <ReferentialConstraint>
      <Principal Role="Currency">
      <PropertyRef Name="Code" />
      </Principal>
      <Dependent Role="OrderItem">
      <PropertyRef Name="ItemPrice/CurrencyCode" />
      </Dependent>
      </ReferentialConstraint>

            Assignee:
            handl
            Reporter:
            handl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: