O'Reilly logo

A Programmer's Guide to .NET by Alexei Fedorov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

12.1. ADO.NET and its namespaces

All data-related classes reside in the System.Data namespace, which can be found in the System.Data.dll assembly and its secondary namespaces:

  • System.Data.Common;

  • System.Data.OleDb;

  • System.Data.SqlClient;

  • System.Data.SqlTypes.

Let’s look at the purpose and contents of the System.Data namespace and, after this, at the purpose and contents of its secondary namespaces.

The System.Data namespace consists of classes, interfaces, delegates, and enumerations. The central class of ADO.NET is the DataSet class. This is the disconnected data container that serves as an in-memory cache of data. The DataSet, together with managed providers, supports reading from and writing modified data back to a data source.

The DataSet

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required