Skip to content

Annotation TopSupported should be a Tag, not a Record #32

@joostverhoog

Description

@joostverhoog

TopSupportedConfiguration.ToEdmExpression creates a EdmRecordExpression, but TopSupported is a Core.Tag.

Assemblies affected

OData ModelBuilder

Reproduce steps

  1. Have a simple class Students
  2. Add an entity set for it that does not have top supported: new ODataConventionModelBuilder().EntitySet<Student>("Students").HasTopSupported().IsTopSupported(false);
  3. Inspect the resulting $metadata file

Expected result

The Students entity set has an annotation <Annotation Term="Org.OData.Capabilities.V1.TopSupported" Bool="true" />

Actual result

The Students entity set has an annotation

<Annotation Term="Org.OData.Capabilities.V1.TopSupported">
  <Record>
    <PropertyValue Property="TopSupported" Bool="false"/>
  </Record>
</Annotation>

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions