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 are two important objects of ADO.Net?
How will you differentiate between ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
Which method is used by command class to execute SQL statements that return single value?
What is ado.net architecture?
What is the use of connection object in ado.net?
Explain how do you connect to sql server database without using sqlclient?
Explain how to pass multiple tables in datasets simultaneously?
Explain which name space is used to get assembly details?
Which object of ado contains datarow datacolumn collection?
What are the 3 major types of connection objects in ado.net?
How do you connect to sql server database without using sqlclient?
How to store data in memory?
Define atomicity?
Is ado.net dead?
Give an example of a .net application which connects to microsoft access database using ado.net classes.