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
Some important instruction regarding ADO.NET connection string ?
What is full form of ado?
Which provider is used to connect ms access, oracle, etc…?
What is ole access?
What is ado.net architecture?
How can you add or remove rows from the datatable object of dataset?
What is difference in record set and dataset?
how you will deal result set? How do you sort a dataset?If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?
What are the drawbacks of using ado.net?
What is the meaning of object pooling?
How to read data with the sqldatareader ?
how Sequence to connect and retrieve data from database using dataset?
differance between ADO vs ADO.Net?
What is ole db and odbc?
What are the data providers in ADO.NET framework?