获得强类型dataset的最简单方式(typed dataset)

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

posted @ 2009-04-21 19:26  Devid  阅读(162)  评论(0编辑  收藏  举报