What's the difference between Dataset.clone and Dataset.copy?
Answer Posted / dasaradhi
Clone -- Creates another reference (Pointer) to the same
location.
Copy -- Creates two different references to two different
Address Spaces
DataSet dsOriginal = new DataSet();
DataSet dsClone = dsOriginal.Clone();
DataSet dsCopy = dsCopy.Copy();
What does this mean?
Well, here is the answer.
If you make changes to dsClone, they will reflect in
dsOriginal also. where as you do changes to dsCopy, the
changes will not reflect in dsOriginal.
Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is execute scalar in ado.net?
What is sqldatareader?
What are disadvantages of microsoft-provided data provider classes in ado.net?
What are all the different methods under sqlcommand?
Explain the architecture of ado.net?
What is the usage of the dataset object in ado.net?
How will you differentiate between ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
What is serialization and de-serialization in .net? How can we serialize the dataset object?
What are the advantages of oledb compared with other classes?
Does ado.net use odbc?
What is the difference between Response.Expires and Reponse.ExpiresAbsolute?
What are the advantage of ado.net?
What is Serialization in .NET? what are the types of Serialization?
What is difference between Dataview and Datatable?
How can we serialize the dataset object?