开发者

WCF Rest Service

开发者 https://www.devze.com 2023-03-15 09:13 出处:网络
I am developing rest wcf service using linq to SQL. I am very new to wcf 开发者_JAVA百科services. The problem I am facing is my web service output xml sorts my tags in ascending order and I don\'t wan

I am developing rest wcf service using linq to SQL. I am very new to wcf 开发者_JAVA百科services. The problem I am facing is my web service output xml sorts my tags in ascending order and I don't want that can anybody give me some suggestions why do the web service sorts the tags in alphabetical order?


Serializing members in alphabetical order is default behavior of DataContractSerializer. If you want different order you must set Order in DataMember attribute for every property.

0

精彩评论

暂无评论...
验证码 换一张
取 消