Vous êtes sur la page 1sur 6

ADO.

NET
ADO- ActiveX Data Object
used for VB Application alone
Problems
scalability,
Performance
interoperability across multiple platforms
ADO.NET
ADO.NET Benefits
Interoperability
communicate across heterogeneous environments.
Distributed interNet Applications (DNA) Architechure
Network Data Representation (NDR)- payload
ADO.NET addresses the common data-exchange limitation by using XML as it payload
Scalability
serve a growing number of clients without degrading system performance
ADO.NET uses disconnected dataset
Productivity
quickly develop robust data access applications
framework classes allow developers to boost their productivity
Visual Studio.NET is a great Rapid Application Development (RAD) tool
Component Designer generate ADO.NET typed DataSets
Performance
database server is no longer a bottleneck when the number of connection requests goes up
ADO.NET Architecture

High -level architecture of ADO.NET


Contains two distinct groups of classes
Content Component
DataSet , DataTable, DataRow, DataColumn, and DataRelation.
Managed Provider Component
Assist in data retrieval and updates
Connection, Command, DataReader, DataAdapter

DataReader
fast, forward-only, and r ead-only access to data.
DataSet
lightweight cache of a particular database from the data store
DataAdapter
load content from a data store into a DataSet and reconcile DataSet
changes back to
the data store
Content Components

DataSet
XML
Three methods integrate DataSet tightly with
XML
thus making it universally interoperable.
WriteXml( )
dumps only the schema of the tables, including all tables and
relationships between tables
WriteXmlSchema( )
dump both the schema and table data as an XML
ReadXml( )
reads XML data documents and reconstructs Dataset
Eg);
DataSet ds2 = new DataSet("RestoredDS");
ds2.ReadXml("DS_Orders.xml");