2.4. Disconnected Mode and the DataSet

When collecting data for transmission to Web browser or Web service clients, most developers use disconnected mode if the retrieved data can be cached in the middle tier or Web server and reused. This practice eliminates multiple redundant round-trips to the database, trading them for the space on the Web server required to store the data in memory. Storing the data on the Web server can be implemented using the ASP.NET Application, Session, or Cache class, subject to concurrency and memory constraints. The replacement for the ADO's client-side, disconnected Recordset is the DataSet, shown in the next example to illustrate the disconnected mode of data access. The DataSet can manage multiple sets of data ...

Get Essential ADO.NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.