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
Describe ado.net object model in detail.
What are the advantages of using datalist?
What are the different row versions available in table?
Which method is used by command class to execute SQL statements that return single value?
What is dbcontext and dbset in entity framework?
Which keyword is used to accept variable number of parameters?
Describe datareader object of ado.net with example.
What is difference between entity framework and ado.net?
What are the difference between readonly vs. Const?
What are the namespaces used in ADO.Net to connect to a database?
What is data adapter in ado.net with example?
How does entity framework work?
Explain ODP.net
What is a control toolbox?
What are all the different authentication techniques used to connect to MS SQL Server?