What is the easiest way to apply to database changes to the structure (not the data) made to DataSet? Do I need stuff like DataAdaptors? Is it possible to use in this way the DataSet that I configured via Visual Studio wizards? How to access such a DataSet?
Share
You could combine DataSet.GetXmlSchema() with an XLST to generate the schema DDL. Another way would be to write a small program to parse each DataTable, it’s DataColumns and DataRelations based on the available meta data (DataColumn.DataType, ColumnName, MaxLength, AllowNull, etc.) to build the DDL.
However, both approaches would only be good for new schemas, if you wanted to generate DDL for schema changes, then to be honest you’d probably save a lot of time by using an existing product.