Trusted answers to developer questions

What is ADO.NET?

Get the Learn to Code Starter Pack

Break into tech with the logic & computer science skills you’d learn in a bootcamp or university — at a fraction of the cost. Educative's hand-on curriculum is perfect for new learners hoping to launch a career.

ADO.NET

ADO.NET is a tool that acts as a bridge between the front end application and the back end database. It provides consistent access to backend technologies such as SQL Server and XML.

ADO.NET includes different classes and different options to fetch data with different use-cases.

svg viewer

DataSet Class

The DataSet object represents a subset of the database. Since it is not continuously connected to the database, a connection needs to be made to make updates. The DataSet contains member properties of DataRelation and DataTable types, both of which are described below.

DataRelation Class

The Data Relation class is used to represent the relationships between tables, navigate between them, and return parent or child records.

DataTable Class

The DataTable class represents the tables in a database. A single DataTable object represents just one table of data.

DataRow Class

A DataRow object represents one row in a DataTable.

DataAdapter Class

A DataAdapter object is used as a bridge between a database and a DataSet. It can update both the DataSet object and the original data-source to match the changes in the other, as required.

DataReader Class

As the name suggests, DataReader offers a way to read data from the data source. However, its purpose may be read-only. DataReader objects offer a good way to read large chunks of data as data is not cached locally when it’s used.

DbConnection Class

The DbConnection class handles connections between the program and the database.

DbCommand Class

DbCommand objects represent SQL commands or stored procedures to run on a database.

DbException Class

The DbException class is an abstract class used as the base class for exceptions thrown by the data source.

RELATED TAGS

c#
databases
software development
Copyright ©2024 Educative, Inc. All rights reserved
Did you find this helpful?