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

How do you update database through dataset?

1025


What is sqldatareader in ado.net?

966


Which is better entity framework or ado.net?

1118


Define atomicity?

1088


What provider ado.net use by default? Explain the role of data provider in ado.net? What is the role of data provider in ado.net?

1029


Explain how to copy the contents from one table to another table and how to delete the source table in ado.net?

913


What are the data providers in ADO.NET framework?

1074


How to creating a SqlCommand Object?

1197


Explain the basic use of "dataview" and explain its methods.

1057


What Is Difference Between Ado And Ado.net?

1076


What is the use of adodc?

1040


Do you use stored procedure in ado.net?

1079


how can implement dropdownlist in particular of dataset when try to update?

2830


What do you mean by ‘batch updates’?

1088


What is ado.net full form?

1036