I have an entity, Foo, with a property, Bar (an Edm.String, say).
Suppose that I want to add an annotation to this - let's call it "ReadOnly" (or if that has some special meaning in OData v4, choose any custom annotation - maybe "Blurgum"). It's an Edm.Boolean (or whatever, "Edm.String" if Boolean isn't a real thing).
How do I get this annotation to show up in the entity metadata? Note that I'm letting the service generate the metadata and using ODataModelBuilder construct the EDM for me from a Foo C# class.
It seems like this should be easy, but everything I've investigated has been a dead end:
I'd like to see the annotation in the returned metadata; I understand this might require sending some preference headers in the request, but we'll cross that bridge when we come to it.
Now these annotations are not supported. Here is a related bug: https://aspnetwebstack.codeplex.com/workitem/1451