ADO.NET Using C#


Request an offer for classroom delivery of this course

Online Registration and Course delivery

Course duration

Course Outline

This three-day intensive ADO.NET Using C# training class teaches the essential elements of ADO.NET such that at the end of the course the programmer is able to utilize its tremendous database manipulation powers to build effective database applications. The course includes a major case study demonstrating the use of ADO.NET in a realistic setting. It is current to .NET 4.6, Visual Studio 2015 and SQL Server 2014.

The course opens with an overview of ADO.NET and its relation to previous Microsoft data access technologies. It includes a discussion of ADO.NET architecture, main interfaces and classes, and programming with both the connected and disconnected models. The database for the case study is introduced.

The next two chapters cover in detail Connection and Command objects, which are essential in both connected and disconnected database access scenarios. The following chapter covers DataReaders, which provide a fast, forward-only reading capability. Programming with DataReaders bears a close resemblance to programming with the vintage recordset object.

Then the course focuses on the backbone of ADO.NET: DataSet and its related classes, such as DataAdapter, DataTable, DataRow, DataColumn, DataRelation, TableMappings and ColumnMappings. DataSet is able to handle multiple tables while remaining disconnected. It is eminently suited for building highly scalable applications for the Web. The close relationship between ADO.NET and XML is covered in detail. Transactions and concurrency are covered.

  1. Introduction to ADO.NET
    1. Microsoft Data Access Technologies
    2. From ADO to ADO.NET
    3. ADO.NET Architecture
    4. Namespaces and Classes
    5. Interfaces
    6. DataSets and Disconnected Access
    7. First ADO.NET Programs
    8. Acme Computer Case Study
  2. ADO.NET Connections
    1. .NET Data Providers
    2. IDbConnection
    3. Connection Classes
    4. Connection Strings
    5. Connection Pooling
    6. Connection Events
    7. Error Handling
  3. ADO.NET Commands
    1. IDbCommand
    2. Command Objects
    3. Creating Commands
    4. Executing Commands
    5. Parameterized Queries
    6. Command Types
    7. Using Stored Procedures
    8. Batch Queries
  4. DataReaders and Connected Access
    1. DataReaders
    2. IDataReader
    3. IDataRecord
    4. Type-Safe Accessors
    5. Null Columns
    6. ExecuteReader Options
    7. Multiple Result Sets
    8. Obtaining Schema Information
  5. Data Sets and Disconnected Access
    1. DataSet
    2. DataAdapter
    3. Command Objects
    4. DataTable
    5. DataColumn
    6. DataRow
    7. Row States and Versions
    8. Accept or Reject Changes
    9. DataTable Events
    10. Updating a Database from a DataSet
    11. Command Builders
  6. More About DataSets
    1. Filtering DataTables
    2. Multiple Table DataSets
    3. Schema
    4. Constraints
    5. Relations
    6. Navigating a DataSet
    7. DataMapping
    8. Creating a DataSet Programmatically
  7. XML and ADO.NET
    1. Strong Coupling Between ADO.NET and XML
    2. Rendering XML from a DataSet
    3. Controlling XML Output
    4. Reading XML into a DataSet
    5. XML Schema and DataSets
    6. Typed DataSets
    7. Table Adapters
    8. Synchronizing DataSets and XML
    9. XML Serialization
  8. Concurrency and Transactions
    1. DataSets and Concurrency
    2. Optimistic Concurrency
    3. Pessimistic Concurrency
    4. Handling Concurrency Violations
    5. ADO.NET Transactions
    6. Database Transactions
  9. Additional Features
    1. Asynchronous Database Operations
    2. Multiple Active Result Sets
    3. Bulk Copy
  10. LINQ and Entity Framework
    1. Language Integrated Query (LINQ)
    2. Bridging Objects and Data
    3. Using Object Relational Designer
    4. Filtering, Ordering and Aggregation
    5. Inserts, Deletes and Updates
    6. LINQ to SQL
    7. LINQ to DataSet
    8. ADO.NET Entity Framework
    9. LINQ to Entities

InterSource Geneva, a premier Information Technology training firm, offers over 400 different courses on server, database and programming technologies, as well as end-user classes for the most popular office, graphics and design applications. We serve clients in Switzerland (Geneva, Lausanne, Bern, Basel, Zurich) and throughout Europe (France, Germany, Austria, Finland, Sweden, England, Netherlands, Spain, etc.).

InterSource offers custom, private courses at client sites, standard public courses in our Geneva classroom, and online training via live Web conference. Training is offered in English and many other languages (Francais, Deutsch, Espanol, Italiano.)

For an overall view of our offerings, please visit us at