What is exactly meaning of disconnected and connected approach in ADO.NET

前端 未结 6 1827
孤城傲影
孤城傲影 2021-02-06 09:31

I am learning ADO.Net. I read this line:-

DataReader is \"connected\" approach and dataset is \"disconnected\" approach

From this

6条回答
  •  闹比i
    闹比i (楼主)
    2021-02-06 09:52

    The ADO.net architecture, in which connection must be kept open till the end to retrieve and access data from database is called as connected architecture. Connected architecture is built on the these types - connection, command, datareader

    The ADO.net architecture, in which connection will be kept open only till the data retrieved from database, and later can be accessed even when connection to database is closed is called as disconnected architecture. Disconnected architecture of ADO.net is built on these types - connection, dataadapter, commandbuilder and dataset and dataview.

提交回复
热议问题