ReadXmlSchema problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm reading schema into dataset.
Schema has a table definition and a few constraint definitions.
The problem is that when I write xml schema back, it doesn't have any
constrain definition, but only table definition.
It looks like when ReadXmlSchema happens it didn't get constrain definition.
How come I loose constrain?

DataSet ds = new DataSet();
//Output schema
string path2 = Server.MapPath("inc") + @"\DataSetSchema.xsd";

ds.ReadXmlSchema(path2);
ds.WriteXmlSchema(path2 + "checking");

Oleg
 
Back
Top