开发者

Creating DataTable and Copy existing DataTable schema?

I'm using vb.net 2010. I have a DataSet with a Table and data. MyData开发者_如何转开发Set1 which contains Table1

I want to create another table that is the same as the Table1 but without data, but it should have the columns, etc.

How can I do this?


You're looking for the Clone method.
Note that it won't work for tables with foreign keys.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜