This is a migrated thread and some comments may be shown as answers.

DataServiceKey attribute and ADO.NET dataservice

1 Answer 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sam
Top achievements
Rank 1
Sam asked on 11 Nov 2009, 01:06 PM
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

1 Answer, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 11 Nov 2009, 03:55 PM
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.
Tags
General Discussions
Asked by
Sam
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Share this question
or