What's the difference between Dataset.clone and Dataset.copy?
Answer Posted / muzism
Shallow copy is when the address of the object is assigned
to another of the same type. If a change to one is made,
the change is apparent in both instances.
Deep copy is when the entire contents of the object are
copied from one object into another. Hence, there are two
autonomous instances of the object. If a change to one is
made, the change is confined to that object.
Dataset.clone() duplicates (only) the structure of an
dataset, with no data being duplicated.
Dataset.copy() performs a deep copy of the dataset
| Is This Answer Correct ? | 19 Yes | 8 No |
Post New Answer View All Answers
What is sqldatareader?
Explain how to bind the controls(best practice) comboboxes to the data in the dataset?
What does executereader return?
What is the procedure to call a Stored Procedure of Back End in ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
What is csdl entity framework?
What is the use of ADO.NET and XML web services?
What is a data control clerk?
Some important instruction regarding ADO.NET connection string ?
What is dao and ado?
What providers does Ado.net uses?
How can we add/remove row's in "datatable" object of "dataset"?
Define the data provider classes that is supported by ado.net?
Which ado.net object is very fast in getting data from the database?
What is the difference between a datareader and a dataset?
Can datareader hold data from multiple tables?