Annotations
Allow me to add annotations to my OData model (Range, Display Member, etc) and have those be picked up by the client code generator. The annotations should be exposed by the service's metadata endpoint for any client to consume if needed.
4 comments
-
showkath
commented
Hi Mike
Did u get any oData service (public aviable) which contains annotations (Range, Display Member, etc) and have those be picked up by the client code generator. The annotations should be exposed by the service's metadata endpoint for any client to consume if needed.
I dont found any service which contains above features.I saw below urls for OData V3 as demo services
http://services.odata.org/V3/OData/OData.svc/
http://services.odata.org/V3/(S(readwrite))/OData/OData.svc/
http://services.odata.org/V3/Northwind/Northwind.svc/
These service metadata also does not contain any properties/tags related to odata v3 vocabularies,annotations .
Please prvoide me any service if you know.
-
Anonymous
commented
i have same requirement.
-
BullCreek
commented
Also, please add annotation support for a way to exclude custom properties that get added to data objects on the client side via a partial class from being serialized - as the current work around of overriding DataServiceContext.WritingEntity is a maintenance nightmare.
As part of this, also please make the POCO code generator go ahead and implement IDataErrorInfo so when we bind to the objects on the client side all our hard work of defining annotations will automatically show up and be ready to put to work! Also, shouldn't this item be combined with http://data.uservoice.com/forums/72027-wcf-data-services-feature-suggestions/suggestions/1012623-better-validation-support?ref=title as they are closely related - and hey that would push it up to number one!
-
Stef Stachow
commented
The ability to represent identity/computed columns in the $metadata is pretty crucial. I'm disappointed to have spent so much time using the Alex James tutorials building an un-typed customer WCF Data Service Provider being unaware of this limitation.