We all know that Dataset is purely disconnected
architechure, but we also know that we can update the
changes made to the dataset can be updated in the backend
database. when there is no connection how does the update
happedn?

Answer Posted / neha

DataAdapter helps in updating back the database through its
update method. That is,
adapter.Update(ds);

It does this even when the connection is closed. Actually,
data adapter opens connection object to update the records,
after the records are updated, the connection is closed
again. Since there must be some path from application to
database in order to update and retrieve records. Thus, to
do this, adapter uses the connection.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the usages of the command object in ado.net?

737


What is the advantage of ado.net?

741


How can we perform transactions in .net?

766


How can we add relation between tables in a dataset?

730


Does entity framework use ado.net?

701


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?

704


How do I delete a row from a DataTable?

756


What is the usage of the dataset object in ado.net?

673


What are all features of ADO.Net?

724


What is the difference between Command and CommandBuilder object?

765


What are the methods of XML dataset object?

784


What is the difference between DataReader and DataSet in ADO.NET?

780


Explain About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data.

772


If we are not returning any records from the database, which method is to be used?

974


How does entity framework work?

647