2. • What is ADO.NET ?
• What is Namespace in ADO. Net ?
• What is data provide of Ado.net?
• Objects of ado.net ?
3. ADO.NET
(Active Data Object)
• It provide the facilities or function to create a
connection between frontend and backend,
you can update, retrieve and add new data to
the data base with the case of class or
function provide by ADO.net
»ADO. Net support both connected and
disconnected architecture.
4. Disconnected:
• ADO.NET offer the capability of working with
database in a disconnected manner.
• Entire database table can be retrieve to a local.
ADO.NET CLASS
1. connection- connect to database
2. Command- sql statement to retrieve data, select
delete ,update etc…
3. Data Reader:-Squential access the data soruce
access one by one
4. Data Adopter:-Populate a dataset &
update,delete,edit the data..
5. ADO.NET ADO
Disconnected oriented model Connection oriented model
Data set object is used ADO uses record set object
One dataset is a collection of one or more
tables and relations.
Records stores only one table from the
data base. Join query is used for multiple
ADO. Net uses XML,XSD for interchange
of data.
Data exchange between application is
provided through COM (common object
model)
Full support for XML Limited support
Rows are represented as collections, so
we can navigate through the table. or
access particular row
In this sequential to access of rows by
using move text method
Communication to the database is
estabished by data adopter. It call the
oledb provider
Communication to the database are
established by making calls to
Oledb provider
6. 2. What is Namespace
ADO.Net namespace hierarchy organizes the
object model. Let us some of the name space used
in the ado.net.
1.System data-it consist of class for manipulating or
data and we can represent the data logically. It
also enables the user to view and share the data
by using xml.
2.System data.oledb:- it is a collection of classes for
accessing the data source such as oracle, msAcess
and sql server. It is used to establish connection
between datasets and databases.
7. 3. System.Data.Comment- it consist of classes that
can be shared by all the .net framework
providers. These classes are providing the
flexibility for the developers to write a code that
will work with all net framework data providers.
4. System.Data.SqlClient:- Provides managed
provider for SQL server. It is built on tabular Data
stream to increase the performance. It consists of
classes for error Handling and connection
pooling.
5. System.Data.Sql.types:- It provides classes for
native SQL server data types.
8. 3. What is data provider
• Its mainly responsible for providing and maintaining
the connection to the database. The component of
the data manipulation and fast forward only, read
only access to data. The functionality of these
providers are enhance by,
connection,command,datareader,data adopter
object provider are shipping with .net framework
are sql server and oledb data provider.each provider
contains a set of classes that implement common
interface
• There are four types of data provider……
9. 1. Sql client
2. OLEDB
3. ORACLE
4. ODBC ……etc.
Objective/feature of ADO.NET
For developing the datacentric application. ADO.NET provide
many benefit like..
1. Disconnected data architecture.
2. Scalability
3. Interpretability.
It increase the safety of the code and reduce the compilation
error
Enable integrate the data form multiple hetrogenous source.