WCF Rest初学者工具包OnGetItems:格式化IEnumerable<;KeyValuePair。。XML
WCF Rest初学者工具包OnGetItems返回WCF Rest初学者工具包OnGetItems:格式化IEnumerable<;KeyValuePair。。XML,wcf,rest,Wcf,Rest,WCF Rest初学者工具包OnGetItems返回IEnumerable 在序列化时,它变为 <ItemInfoList> <ItemInfo> <EditLink>http://localhost:1394/BService.svc/1</EditLink> <Item> <Name>Foundations</Name> </Item> </ItemInfo> <ItemI
IEnumerable
在序列化时,它变为
<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>
http://localhost:1394/BService.svc/1
基础
http://localhost:1394/Service.svc/2
搭便车指南
我想将ItemInfo和ItemInfoList更改为更合理的名称,如业务实体名称。我该怎么做呢?据我所知,您不能更改这些名称,因为REST kit为您提供了数据契约ItemInfosList和ItemInfo,所以您使用CollectionServiceBase放弃了一些控制