6.5 Cloning the Schema

The Clone( ) method creates a new DataSet with the same structure, including table schemas and relations, as the original but containing none of the data in the original DataSet . The following example uses the Clone( ) method to create a new DataSet :

 // create a DataSet object variable to receive the clone DataSet cloneDs; cloneDs = ds.Clone(); 


ADO. NET in a Nutshell
ADO.NET in a Nutshell
ISBN: 0596003617
EAN: 2147483647
Year: 2005
Pages: 415

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net