By Sriram. B
By Sriram. B
By Sriram. B
By
SRIRAM. B
Objective
Introduction to ADO.NET &Features of ADO.NET
ADO.NET Object Model
Connecting database through Connection Object
Executing Queries through Command Object
Retrieving records through DataReader
Connect to a database by using DataAdapter
Dataset Object Model
Accessing Databases through Dataset
Command Builder
Data Relation Object
ADO.NET 2.0 Features
Introduction to
ADO.NET
Introduction to ADO.NET
database
Feature of
ADO.NET
Features of ADO.NET
DATA PROVIDER
Establishes
connection with
the database
CONNECTION
Retrieves data in a
VISUAL BASIC Accessing retrieved read-only,
.NET data forward only mode
APPLICATION DATA READER
(WINDOWS/ WEB Executes a command
FORM)
to retrieve data from
the database DATABASE
COMMAND
Connection
Command
DataReader
DataAdapter
DataSet
Connection
Object
Connection Object
Data adapter
•Creates a dataset and updates the
database.
•Handles data transfer between the
database and the dataset through its
properties and methods.
•Displays the data through the process of
table mapping.
•Are of two types:
–SqlDataAdapter
–OleDbDataAdapter
DataSet
DataSet Object Model
DATASET
DataRelation
DataTable
Typed dataset
•Is derived from the DataSet class and
has an associated XML schema, which
is created at the time of the creation of
the dataset.
•Can be customized after creation.
•Supports Intellisense and
auto‑completion for the elements of the
syntax while writing code.
Types of DataSet..
Untyped Dataset
Does not have any associated XML
schema, therefore, the structure of an
untyped dataset is not known at the
compile time.
Represents tables and columns as
collections.
Does not support Intellisense and
auto‑completion for the elements of the
syntax.
Command
Builder
DataRelation
Object
Bulk Copy
Bulk Data
ADO.NET 2.0
Features
ADO.NET 2.0 Features
Asynchronous Processing
Generic Coding with DB Provider
Factories
Transaction Management
State Management
ADO.NET 2.0
Features
Asynchronous
Processing
Synchronous with Asynchronous Calls
Async Operations in ASP.NET
Async Operations in ASP.NET
WaitAll
Wait Any
Async Implemented Methods
Common Provider
Factory
Hierarchy
System.Data.Common.DbProvider.Fa
ctory
DB Provider Factory
Transactions
DB Transactions
Transaction – Concurrency Problems
Transactions Isolation Level
Settings Isolation Level
Transactions in ASP.NET 1.1
Reset Isolation Levels
Save Point in Transactions
Transactions
Demo
Setting the Save Point
Transaction
Handling
Transaction Scope
Transactions Completed Event
Setting Isolation Level
Session State
Configuration
Session State Configuration
Session State Management
In Process Mode
State Server Mode
SQL Server Mode
Disabling Session State
Demo
Session Ends
Exercise
Relax