-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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
$metadatafile
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 workingSomething isn't working