WCF Data Services Feature Suggestions

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.

158 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Mike FlaskoAdminMike Flasko (Lead Program Manager, DataFx) shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    4 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • showkathshowkath commented  ·   ·  Flag as inappropriate

        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.

      • BullCreekBullCreek commented  ·   ·  Flag as inappropriate

        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 StachowStef Stachow commented  ·   ·  Flag as inappropriate

        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.

      Feedback and Knowledge Base