0% found this document useful (0 votes)
103 views

Ado Net Notes

Uploaded by

SUDIP HOWLADER
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
103 views

Ado Net Notes

Uploaded by

SUDIP HOWLADER
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

What is ADO.NET?

ADO stands for ActiveX Data Objects. ADO.NET is one of Microsoft’s data access technologies, which is use as an
interface/bridge to communicate with different data sources. It is a part/component of the .NET Framework, which
helps to fetch data from different data sources to the .NET Application (Console, WCF, WPF, Windows, MVC, Web
Form, etc.) as well as also used to send data from our .NET Application to different data sources. The Data Sources
can be SQL Server, Oracle, MySQL, XML, etc. ADO.NET consists of a set of predefined classes that can be used to
connect, retrieve, insert, update, and delete data (i.e., performing CRUD operation) from data sources. All the
ADO.NET classes are located into System.Data.dll and integrated with XML classes located into System.Xml.dll

What are the Components of ADO.NET?


The ADO.NET architecture is comprised of 6 important components. They are as follows –
Connection: The Connection component establishes a connection to a data source, such as a database. To create a
connection object, you need at least two things. The first one is where is your database located i.e. the Machine name
or IP Address or someplace where your database is located. And the second thing is the security credentials i.e.
whether it is a Windows authentication or SQL Authentication i.e. user name and password-based authentication. So,
the first is to create the connection object and the connection object is required to connect the front-end application
with the backend data source.
Command: The Command Object is the component where you go and write your SQL queries. Later you take the
command object and execute it over the connection. That means using the command object, you can fetch data or
send data to the database i.e. performing the Database CRUD Operations. It encapsulates SQL statements, stored
procedure calls, and other database commands.
DataReader: The DataReader is a read-only connection-oriented record set that helps us to read the records from a
data source only in forward mode. Read-Only means using DataReader, we cannot Insert, Update, and Delete the
data. Connection-Oriented means, it always requires an active and open connection to fetch the data. Forward mode
means you can always read the next record, there is no way that you can read the previous record.
DataAdapter: The DataAdapter bridges the application’s DataSet (in-memory cache of data) and the data source. It
facilitates the retrieval of data from the data source into the DataSet and also allows changes to be updated in the
DataSet back to the data source.
DataSet: It is a disconnected record set that can be browsed in both i.e. forward and backward mode. It is not read-
only i.e. you can update the data present in the data set. Actually, DataSet is a collection of DataTables that holds the
data and we can add, update, and delete data in a data table. DataSet gets filled by somebody called DataAdapter.
DataView: The DataView is used to filter, sort, and navigate through data within a DataTable. It provides a dynamic
view of the data, allowing you to customize how it is presented to the user.

** Architecture Diagram: https://dotnettutorials.net/wp-content/uploads/2021/03/word-image-63-768x458.png

You might also like