1. Advanced ADO.NET Peter Ty MCSD, MCDBA, MCP+SB, MCSE Developer Evangelist Microsoft Hong Kong Ltd. [email_address]
2.
3.
4.
5. Introduction to ADO.NET Comparison Between ADO and ADO.NET Feature ADO ADO.NET Memory-resident Data Representation RecordSet can contain one table DataSet can contain one or more tables represented by DataTable Object Relationship Between Multiple Tables Require the JOIN query Supports the DataRelation object Data Visitation Scans RecordSet rows sequentially Uses a navigation paradigm for non-sequential access Disconnected Access Provided by RecordSet but typically supports connected access Communicates with standardized calls to the DataAdapter
6. Introduction to ADO.NET Comparison Between ADO and ADO.NET Feature ADO ADO.NET Programmability Uses Connection object to transmit commands Uses strongly typed programming characteristics of XML Sharing Disconnected Data Between Tiers or Components Uses COM marshalling to transmit disconnected record set Transmits a DataSet with an XML file Transmitting Data Through Firewalls Problematic because firewall are typically configured to prevent system-level requests Supported, DataSet object use XML, which can pass through firewalls Scalability Database locks and active database connections for long durations Disconnected access to database data without retaining database locks