2009-10-22 61 views
0

WCF休息初学者工具包OnGetItems返回IEnumerable<KeyValuePair<string,BusinessObject>>WCF休息入门套件OnGetItems:格式化的IEnumerable <KeyValuePair .. XML

在系列化,它成为

<ItemInfoList> 

<ItemInfo> 
<EditLink>http://localhost:1394/BService.svc/1</EditLink> 

<Item> 
<Name>Foundations</Name> 
</Item> 
</ItemInfo> 

<ItemInfo> 
<EditLink>http://localhost:1394/Service.svc/2</EditLink> 

<Item> 
<Name>Hitchhikers guide</Name> 
</Item> 
</ItemInfo> 
</ItemInfoList> 

我想将ItemInfo和ItemInfoList更改为更具像商业实体名称一样明智。我怎样才能做到这一点?

回答

1

据我所知,您不能更改这些名称,因为数据协定ItemInfosList和ItemInfo是由REST套件为您提供的,因此您使用CollectionServiceBase放弃了一些控制。

相关问题