Escolar Documentos
Profissional Documentos
Cultura Documentos
|
Lecture No:30
|
! Net is an object oriented framework
that allows you to interact with database
systems
! NET is an object-oriented set of
libraries that allows you to interact with
data sources ommonly, the data source
is a database, but it could also be a text
file, an Excel spreadsheet, or an XML file
Traditional architecure
! e usually interact with database systems
through SQL queries or stored procedures In
traditional data access components, you made a
connection to the database system and then
interacted with it through SQL queries using the
connectionThe application stays connected to
the system even when it is not using
services This commonly wastesvaluable and
expensive database resources, as most of the
time applications only query and view the
persistentdata
NET
! The best thing about Net is that it is extremely
flexible and efficient
! Net also introduces the concept of a disconnected
dataarchitecture
! Net solves this problem by managing a local buffer
of persistent data called a data set
! our application automatically connects to the database
server when it needs to run a query and then
disconnects immediately after getting the result back and
storing it in the dataset
! This design of Net is called a disconnected data
architecture and is very much similar to the
connectionless services of HTTP on the internet
! It should be noted that Net also provides
connection oriented traditional data access services
Traditional ata ccess
rchitecture
! onnect to
! Pass query1 and access data from
! fter some time Pass query2 and access
from
! fter some time Pass query3 and access
from
! isconnect
Net isconnected ata
ccess rchitecture
! onnect to
! Pass query1 and access data from
! isconnect
! fter some time, onnect to , Pass
query2 and access from , isconnect
! fter some time, onnect to , Pass
query2 and access from , isconnect
Net isconnected ata
ccess rchitecture
! nother important aspect of disconnected
architecture is that it maintains a local repository
of data in the dataset object The dataset object
stores the tables, their relationship and their
different constraints The user can perform
operations like update, insert and delete on this
dataset locally, and the changes made to the
dataset are applied to the actual database as a
batch when needed This greatly reduces
network traffic and results in better performance
dvantages and isadvantages of
NET
! dvantages:
! It is disconnected data architecture Here data is
retrieved and cached on your local machine
The biggest advantage here is reduced burden
on the database server and helps our
application to scale well
! isadvantages:
! cursor is a database element that controls
record navigation, the ability to update data, and
the visibility of changes made to the database by
other users NET does not have an
inherent cursor object
iscriminate and Net
# | |
leb ata Provider Sources that expose an leb interface, ie ccess
or Excel
racle ata Provider For racle atabases