c# - WCF not required fileds -
this class generated automatically .cs class .xsd make of fields not required. not work "isnullable", [datamember(isrequired = false)]:
wsdl
<xs:element name="addrtypecode" nillable="true" type="xs:string" /> <xs:element name="streetname" nillable="true" type="xs:string" />
.cs
/// <remarks/> [system.codedom.compiler.generatedcodeattribute("xsd", "4.0.30319.1")] [system.serializableattribute()] [system.diagnostics.debuggerstepthroughattribute()] [system.componentmodel.designercategoryattribute("code")] [system.xml.serialization.xmltypeattribute(namespace="example")] public partial class address { [datamember(isrequired = false)] private string addrtypecode; [datamember(isrequired = false)] private string streetname; /// <remarks/> [datamember(isrequired = false)] public string addrtypecode { { return this.addrtypecode; } set { this.addrtypecode = value; } } /// <remarks/> [datamember(isrequired = false)] public string streetname { { return this.streetname; } set { this.streetname = value; } } }
there problem in application things work correct.
Comments
Post a Comment