Introduction To and Its Architecture: Srushti Naik - T19020 Amrin Shaikh - T19026
Introduction To and Its Architecture: Srushti Naik - T19020 Amrin Shaikh - T19026
Introduction To and Its Architecture: Srushti Naik - T19020 Amrin Shaikh - T19026
ADO.NET
and its Architecture
• What is ADO?
• What is ADO. NET ?
• Understanding Database and its configuration
• Architecture of ADO.NET
• SqlConnection, SqlCommand, DataReader class,
SqlDataAdapter, DataSet class
What is ADO?
ActiveX Data Objects (ADO) is an application program interface from Microsoft
What is ADO.Net?
Ms Access
XML
Interacts Interacts
Our Program ADO.NET Database
Like a bridge which connects the two It is similar to the internet connection
ends, ADO.NET Connects application which allows communication
and database between two different ends
Understanding Database
Media sites
CONFIGURING
DATABASE
ADO.NET SQL Server Connection
1. Open Microsoft SQL Server Management Tool
2. Creating Database
ARCHITECTURE OF ADO.NET
The ADO.NET architecture has mainly two parts:
• Data Provider or Managed Provider (Connected Objects)
• DataSet (Disconnected objects)
1) .NET Framework data providers
The .NET Framework Data Providers are components that have been explicitly
designed for data manipulation and fast, forward-only, read-only access to data.
DATA Providers
NameSpaces
Data Providers Databases
SQLClient System.Data.SQLClient SQL Server
OracleClient System.Data.OracleClient Oracle
OleDb System.Data.OleDb Ms Access
Odbc System.Data.Odbc Configured
Database
DATA Providers
SqlConnection object act as a mediator between data source and application which provides the means of
communication in between them.
SqlCommand class
• It represents a Transact- SQL statement or stored procedure to execute against a SQL
Server database. This class cannot be inherited.
• When an instance of SqlCommand is created, the read/write properties are set to
their initial values.
SqlDataReader class