This is a migrated thread and some comments may be shown as answers.
DataServiceKey attribute and ADO.NET dataservice
1 Answer 15 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
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 
as in
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? 

1 Answer, 1 is accepted

Sort by
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,
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.
General Discussions
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question