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.
精彩评论