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

Equivalence of NavigationProperty and Singleton or EntitySet

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: V4.01_CSD02
    • Fix Version/s: None
    • Component/s: CSDL JSON , CSDL XML
    • Labels:
    • Proposal:
      Hide

      There are two aspects of the proposal.

      1) Allow Properties to be declared within an EntityContainer.

      2) Deprecate contained Navigation Properties (ContainsTarget = True) in favor of using EntitySet and Singleton declarations within EntityType and ComplexType declarations.

      Show
      There are two aspects of the proposal. 1) Allow Properties to be declared within an EntityContainer. 2) Deprecate contained Navigation Properties (ContainsTarget = True) in favor of using EntitySet and Singleton declarations within EntityType and ComplexType declarations.

      Description

      A Service often needs to provide additional data, such as service name, organization, model version, ....  This can be defined in an entity type referenced by a Singleton in the service document, but there really is no need to define a separate type for this purpose or for the additional complexity.

      Currently the Service document (EntityContainer) is restricted to two specially defined property meta types: Singleton and EntitySet.  Assuming null for Singleton is allowed, ODATA-1183, the functionality of these types is equivalent to functionality provided by containment Navigation Properties.  

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              george.ericson George Ericson
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: