When in minimal metadata mode there are some times that the type information is included on the payload even though the type is heuristically inferable from the metadata document.<br /><br />1) Create a Web API project.<br />2) Add OData support.<br />3) Create a model consisting of an entity with a binary property.<br />4) Create some mock data to return.<br />4) Check $metadata document to ensure that the binary property is listed in the metadata document.<br />5) Query for the feed or for a specific entry in minimal metadata mode and see the response.<br /><br />The BinaryProperty@odata.type annotation shouldn't be there as it's defined on the metadata document.<br />
↧