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

Explicitly state that the restriction that a property MUST NOT have the same name as its containing type only applies to directly declared properties

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_CSD01
    • Fix Version/s: V4.0_CSD02
    • Component/s: CSDL XML
    • Labels:
      None
    • Environment:

      [Applied]

      Description

      Chapters 8 and 9 state that

      • Properties MUST NOT have the same name as the declaring entity type.
      • Properties MUST NOT have the same name as the declaring complex type.

      This sometimes prevents using natural names for properties, e.g.

      • EntityType Employee
      • EntityType Manager inherits from Employee
      • EntityType Employee has NavigationProperty that leads to the manager

      The natural name for the navigation property is Manager, but prevented by the above rule. So the navigation property has to be named "TheManager" or "manager" (using different case)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: