1. Fill a DataSet with data from the database
2. Save the schema with DataSet.WriteXmlSchema()
3. Use the schema as input into XSD.exe
xsd /DataSet /language:CS C:\Data\Products.xsd
1. Fill a DataSet with data from the database
2. Save the schema with DataSet.WriteXmlSchema()
3. Use the schema as input into XSD.exe
xsd /DataSet /language:CS C:\Data\Products.xsd
转载于:https://www.cnblogs.com/devid/archive/2009/04/21/1440729.html