Groups | Blog | Home
all groups > dotnet ado.net > september 2005 >

dotnet ado.net : ReadXmlSchema problem


Oleg
9/20/2005 12:35:02 PM
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
9/20/2005 12:47:42 PM
Sorry,
Something was wrong with .xsd file. It works now.
Oleg

[quoted text, click to view]
AddThis Social Bookmark Button