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 ado.net architecture?
How would you connect to a database by using .NET?
Give few examples of datareader that is used in different dataproviders.
What are the Data providers in ADO.Net?
What are ado.net objects?
Why is stored procedure used in ado.net?
What are two types of transaction supported by ado.net?
What are the drawbacks of using ado.net?
What provider ado.net use by default? Explain the role of data provider in ado.net?
What is ole data type?
Explain the architecture of ado.net?
What is the role of the dataset object in ado.net?
What are the several execute methods of ado.net?
What is the difference between data grid and data repeater?
What is sqldatareader?