Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net ServiceContractGenerator不应生成XmlElementAttribute(顺序=)_.net_Wcf - Fatal编程技术网

.net ServiceContractGenerator不应生成XmlElementAttribute(顺序=)

.net ServiceContractGenerator不应生成XmlElementAttribute(顺序=),.net,wcf,.net,Wcf,我使用ServiceContractGenerator生成客户端代理(在设计时,但不使用VS中的Add Service引用)。 工作正常,但它会在我的数据类中的每个属性上生成一个XmlElementAttribute(Order=)。 因此,属性的顺序是固定的。如果服务器上的排序发生了变化,我需要重新生成客户端。 知道如何防止ServiceContractGenerator生成XmlElementAttribute吗 谢谢,Jaap似乎是个很难回答的问题;-)我不知道答案,但你可能想获得更多的声

我使用ServiceContractGenerator生成客户端代理(在设计时,但不使用VS中的Add Service引用)。 工作正常,但它会在我的数据类中的每个属性上生成一个XmlElementAttribute(Order=)。 因此,属性的顺序是固定的。如果服务器上的排序发生了变化,我需要重新生成客户端。 知道如何防止ServiceContractGenerator生成XmlElementAttribute吗


谢谢,Jaap似乎是个很难回答的问题;-)我不知道答案,但你可能想获得更多的声誉并开始悬赏?另外,也许你应该尝试在段落中分开,添加链接(ServiceContractGenerator)和fomatting?