DataServiceKey attribute and ADO.NET dataservice

Thread is closed for posting
2 posts, 0 answers
  1. Sam
    Sam avatar
    11 posts
    Member since:
    Oct 2009

    Posted 11 Nov 2009 Link to this post

    hi there
    I tried to make an ADO.NET dataservice using the OA WCF wizard.
    and tried to solve it using 
    [DataServiceKey#if($singleField)("$(pkField)")#end]
    as in 
    http://www.telerik.com/community/forums/orm/design-time/dataservicekey-attribute-and-ado-net-dataservice.aspx
    but pkField return the field Name while it work only with the pk Property Name 
    how can i return it instead on the Field name? 
    thanks
    Sam
  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 11 Nov 2009 Link to this post

    Hi Sam,

    We are aware of this problem. The functionality is implemented and it will be part of our next internal build. With the next build you will be able to modify the template as follows:
    [DataServiceKey#if($multipleField)(new string[]{"$(pkProperties)"})#end#if($singleField)("$(pkProperty)")#end]
    As you can see above, the template will be able to generate the correct DataServiceKey for both single identity and multiple identity.

    Sincerely yours,
    Petar
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top