encyclopegia.org

DataAdapter

In ADO.NET, a data adapter (DataAdapter) is an object that acts as a bridge between a data source and a disconnected in-memory data representation such as a DataSet, enabling data to be retrieved into the DataSet and later written back to the data source.

In ADO.NET, a data adapter (DataAdapter) is an object that acts as a bridge between a data source and a disconnected in-memory data representation such as a DataSet, enabling data to be retrieved into the DataSet and later written back to the data source. ==Overview== The DataAdapter is an abstract base class in the System.Data.Common namespace; provider-specific implementations (such as for SQL Server, OLE DB, or ODBC) typically derive from DbDataAdapter. Data adapters are used with the ADO.NET disconnected model, where an application loads data into a memory-resident DataSet (including related tables, constraints, and relationships) and later reconciles changes back to the underlying data source. ==Operation== ===Filling a DataSet=== A DataAdapter populates a DataSet (or DataTable) through its Fill method, using its SelectCommand to retrieve rows from the data source. ===Updating the data source=== A DataAdapter can persist changes made in the DataSet back to the data source using Update; it applies INSERT, UPDATE and DELETE operations as appropriate based on changes tracked in the DataSet, using command objects such as InsertCommand, UpdateCommand and DeleteCommand. ===Schema and table mappings=== Data adapters can also configure a DataSet's schema from the data source (for example, using FillSchema) and can map source table names to DataTable names through table mappings. ==Implementations== Provider-specific data adapters include: SqlDataAdapter for Microsoft SQL Server (System.Data.SqlClient) OleDbDataAdapter for OLE DB data sources (System.Data.OleDb) OdbcDataAdapter for ODBC data sources (System.Data.Odbc) A DataSet can be filled and updated using multiple DataAdapter instances, and can contain related tables originating from different data sources exposed through different providers. ==See also== ADO.NET ==References==

References

No reference rows published for this article.

Cite this article

MLA

"DataAdapter." encyclopegia.org, 2025, https://encyclopegia.org/wiki/dataadapter. Accessed 24 November 2026.

Chicago

"DataAdapter." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/dataadapter.

APA

encyclopegia.org. (2025). DataAdapter. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/dataadapter

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

DbExpress

enwiki · references available

Teck

enwiki · references available

Lorimer Fison

enwiki · references available

William E. Ritchie

enwiki · references available

Jon Singleton (accountant)

enwiki · references available

Titelberg

enwiki · references available

Jimmy Gray (English cricketer)

enwiki · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1327495434 · 0.5 · snapshot enwiki-001327495434

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.