Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is sqldatareader?

899


Explain how to bind the controls(best practice) comboboxes to the data in the dataset?

1004


What does executereader return?

951


What is the procedure to call a Stored Procedure of Back End in ADO (ActiveX Data Object) and RDO (Remote Data Objects)?

1036


What is csdl entity framework?

1002


What is the use of ADO.NET and XML web services?

1027


What is a data control clerk?

1025


Some important instruction regarding ADO.NET connection string ?

966


What is dao and ado?

915


What providers does Ado.net uses?

996


How can we add/remove row's in "datatable" object of "dataset"?

1002


Define the data provider classes that is supported by ado.net?

956


Which ado.net object is very fast in getting data from the database?

1086


What is the difference between a datareader and a dataset?

1012


Can datareader hold data from multiple tables?

1162