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

Second CSDL example fails to set IsDefaultEntityContainer="true" in accordance with section 12.1.2

    XMLWordPrintable

    Details

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

      [Closed]

      Description

      In the CSDL spec (2012-03-19), section 12.1.2 "The IsDefaultEntityContainer Attribute" states:

      Each metadata document that is used to describe an OData service MUST mark exactly one entity container with this attribute to denote that it is the default.

      But the second CSDL example in section 17.2 has:

      <EntityContainer Name="Model1Container" >
      <EntitySet Name="CustomerSet" EntityType="Model1.Customer" />
      <EntitySet Name="OrderSet" EntityType="Model1.Order" />
      </EntityContainer>

      Note that IsDefaultEntityContainer="true" is missing, which is not in accordance with section 12.1.2.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              evan.ireland.2 Evan Ireland
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: