let's say I have a class called foo:
xsd.exe will generate a schema like so:Code:public class foo { public string name { get; set; } public string description { get; set; } }
the trouble is those attributes that sayCode:<xs:element name="foo" nillable="true" type="foo" /> <xs:complexType name="foo"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="name" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="description" type="xs:string" /> </xs:sequence> </xs:complexType>
meaning that they are optional.Code:minOccurs="0"
what attribute can I add to my properties to make them requred?



LinkBack URL
About LinkBacks


