{
  "id": 18874331,
  "title": "Core objects and the connected model — ADO.NET",
  "url": "https://urgent.news/2026/11/08/core-objects-and-the-connected-model-ado-net",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-08T06:12:34.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/divakarupadhyay/core-objects-and-the-connected-model-adonet-2jff"
  },
  "original_language": "en",
  "account": "ADO.NET is Microsoft's core data access library for the .NET framework, comprising System.Data and provider packages. Its primary objects include Connection, Command, Parameter, DataReader, DataAdapter, DataSet, DataTable, and Transaction.\n\nConnected architecture maintains an open connection while reading data through a DataReader, which is fast and memory-efficient but limited in flexibility. Disconnected architecture involves filling a DataSet or DataTable with data, allowing for navigation, editing, and later updates to the database using Update(). Modern applications generally prefer the connected model, often utilizing Dapper or Entity Framework (EF) for efficiency.\n\nThe difference between ExecuteReader, ExecuteScalar, and ExecuteNonQuery lies in their return values. ExecuteReader yields a DataReader for one or multiple result sets, ExecuteScalar returns the first column of the first row (like COUNT, SUM, or new identity via OUTPUT or SCOPE_IDENTITY()), and ExecuteNonQuery executes data manipulation statements such as INSERT, UPDATE, DELETE, and DDL, returning the number of affected rows.",
  "summary": "Lesson 1 of 9 in the free ADO.NET — Connected & Disconnected Data Access course on DevLadder. Object Role SqlConnection Connection to the DB (pooled) SqlCommand SQL statement or stored procedure SqlParameter Typed parameter value — prevents SQL injection SqlDataReader Fast, forward-only, read-only stream of rows SqlDataAdapter Bridge between DB and DataSet DataSet / DataTable In-memory relational…",
  "key_points": [],
  "editors_take": "Choosing between connected and disconnected architectures forces developers to balance the immediate speed of active connections against the flexible data manipulation capabilities provided by disconnected datasets.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}