Sunday 9 August 2015

What is difference between DataSet.Copy() and DataSet.Clone()

 DataSet.Copy() : 
  1. It copies both structure and Data.
  2. Methods copies all the Dataset including it's datatables schemas, constraints along with the data.
                        DataSet  s;
                          DataSet s1;
                            s1= s.Copy();

DataSet.Clone() : 
  1. It only copies structure, doesn't copy Data.
  2. Copies only structure of the dataset. It includes all datatable schemas their contraints and excluding data in those datatables.
                          DataSet  s;
                          DataSet s1;
                            s1= s.Clone();




  

No comments:

Post a Comment