G
Guest
I have an xsd that contains the following:
<xs:choice>
<xs:element name="ApplicationID" type="xs:string" />
<xs:element name="RuleID" type="xs:string" maxOccurs="unbounded" />
</xs:choice>
The problem is that when I look at the resulting dataset, the AllowDBNull
field for ApplicationID and RuleID are both set to TRUE. Isn't it valid for
one or the other of these fields to be nullable in any given row? In fact,
isn't it required that only one of the two elements appears in each row? If
so, why does the DatSet think these are both non-nullable? I don't get any
Is...Null APIs generated in the auto-generated code.
<xs:choice>
<xs:element name="ApplicationID" type="xs:string" />
<xs:element name="RuleID" type="xs:string" maxOccurs="unbounded" />
</xs:choice>
The problem is that when I look at the resulting dataset, the AllowDBNull
field for ApplicationID and RuleID are both set to TRUE. Isn't it valid for
one or the other of these fields to be nullable in any given row? In fact,
isn't it required that only one of the two elements appears in each row? If
so, why does the DatSet think these are both non-nullable? I don't get any
Is...Null APIs generated in the auto-generated code.