Hi,

I am writing an app which reads a SQL Server schema,
configures a dataset with that information and finally
writes the xsd schema to a file.

The problem is that the resulting xsd file does not have
the "UpdateRule" value, so when I build a new Dataset from
that file this value is lost.

I use the DataSet.WriteXmlSchema(filename) method to write
the file, and the constraints of the relations of the
dataSet have appropiate values in the UpdateRule property.

Has anyone experienced the same behaviour in this method?

Now I am introducing the attributes in the xsd file using
the XmlDocument class, which in my opinion is not very
elegant.

Does someone resolve this issue in other way?


Thanks in advandce.

Jose Antonio.