TopSupportedConfiguration.ToEdmExpression creates a EdmRecordExpression, but TopSupported is a Core.Tag.
Assemblies affected
OData ModelBuilder
Reproduce steps
Have a simple class Students
Add an entity set for it that does not have top supported: new ODataConventionModelBuilder().EntitySet<Student>("Students").HasTopSupported().IsTopSupported(false);
Inspect the resulting $metadata file
Expected result
The Students entity set has an annotation <Annotation Term="Org.OData.Capabilities.V1.TopSupported" Bool="true" />
TopSupportedConfiguration.ToEdmExpression
creates aEdmRecordExpression
, butTopSupported
is a Core.Tag.Assemblies affected
OData ModelBuilder
Reproduce steps
Students
new ODataConventionModelBuilder().EntitySet<Student>("Students").HasTopSupported().IsTopSupported(false);
$metadata
fileExpected 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