Add wcf reference: the file Reference.cs can not generate [System.Runtime.Serialization.DataContractAttribute(Name="ClassName", Namespace="..."] but generate [System.Xml.Serialization.XmlTypeAttribute(Namespace="...")] on top of a className(DataContract). For example:
[![enter image description here](https://i.stack.imgur.com/7SJ5q.png)](https://i.stack.imgur.com/7SJ5q.png)
but I want to let Reference.cs generate the below code:

[![enter image description here](https://i.stack.imgur.com/FYodG.png)](https://i.stack.imgur.com/FYodG.png)

How to do it?
if it is [System.Xml.Serialization.XmlTypeAttribute(Namespace="...")] , wcf transfer parameter ClassName's instance cause ClassName's Int32 FieldName = 0.
but if it is [System.Runtime.Serialization.DataContractAttribute(Name="ClassName", Namespace="..."], wcf transfer parameter ClassName's instance can get correct value.

How to resolve it?

My server interface：

[![enter image description here](https://i.stack.imgur.com/bCLvY.png)](https://i.stack.imgur.com/bCLvY.png)

My model ：

[![enter image description here](https://i.stack.imgur.com/ZbvQs.png)](https://i.stack.imgur.com/ZbvQs.png)