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 DataReader class do in ADO.NET ?
Does sqlclient and oledb class share the same functionality?
Define table relations?
What is the role of clr?
What is ambient transaction?
What is ado data control?
How to maintain the relation between two tables in ADO.NET?
What are the differences between OLEDB and SQLClient Providers?
What is aggregate root?
How to Read, Add, Update and Delete record in Entity Framework ?
What is the use of Dataview?
What is the difference between data grid and data repeater?
What does executereader return?
What is the difference between ADO and ADO.Net?
What are disadvantages of microsoft-provided data provider classes in ado.net?