How to generate FULL schema of DataSet

  • Thread starter Thread starter Tilfried Weissenberger
  • Start date Start date
T

Tilfried Weissenberger

Hi,

I am writing a CMS-System which dynamically loads modules at startup
and each module supplies it's Schema in form of a DataSet. The
CMS-Core merges all these fragments into one whole DataSet. So far, so
good, it all works and all tables are in the dataset.

But if I try to persist that schema (using either GetXmlSchema() or
WriteXmlSchema()) to a file or across a WebService, some tables are
missing, and some are referenced externally. How can I export a clean,
complete Schema of the DataSet, so that it doesn't include any
external references??

regards, Tilli
 
Hi,

I guess you have some DataTables with different Namespaces than DataSet. if
this is the case, you should see other schema files containing schema for
DataTables with different Namespace than DataSet.

if DataSet has some DataTables with different Namespaces, you wont get one
schema representing the whole DataSet.

work around would be to make sure all DataTables have the same namespace as
DataSet.
 
I guess you have some DataTables with different Namespaces than DataSet. if
this is the case, you should see other schema files containing schema for
DataTables with different Namespace than DataSet.

thanks! I have unified the Namespaces by looping through the Tables
collection and now I get a clean DataSet-Schema.

regards, Tilli
 
Back
Top