ADO.NET Using C#
Course duration
- 3 Days
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.
- Understand the architecture and main classes of ADO.NET.
- Gain fluency in programming ADO.NET using C#.
- Gain a thorough understanding of the use of disconnected DataSets for building highly scalable applications.
- Acquire a working knowledge of the tight coupling of XML with ADO.NET.
- Learn how to use additional features in ADO.NET, including asynchronous operations, multiple active result sets, and bulk copy.
- Acquire a working knowledge of LINQ and the Entity Framework.
- Implement a realistic case study that ties together many concepts of ADO.NET in a practical demonstration.
- Basic knowledge of SQL and of programming the .NET Framework using C#.
- Understanding of the fundamentals of XML.
- Ability to write simple Windows Forms applications. .
- A working knowledge of SQL Server is also desirable.
- Introduction to ADO.NET
- Microsoft Data Access Technologies
- From ADO to ADO.NET
- ADO.NET Architecture
- Namespaces and Classes
- Interfaces
- DataSets and Disconnected Access
- First ADO.NET Programs
- Acme Computer Case Study
- ADO.NET Connections
- .NET Data Providers
- IDbConnection
- Connection Classes
- Connection Strings
- Connection Pooling
- Connection Events
- Error Handling
- ADO.NET Commands
- IDbCommand
- Command Objects
- Creating Commands
- Executing Commands
- Parameterized Queries
- Command Types
- Using Stored Procedures
- Batch Queries
- DataReaders and Connected Access
- DataReaders
- IDataReader
- IDataRecord
- Type-Safe Accessors
- Null Columns
- ExecuteReader Options
- Multiple Result Sets
- Obtaining Schema Information
- Data Sets and Disconnected Access
- DataSet
- DataAdapter
- Command Objects
- DataTable
- DataColumn
- DataRow
- Row States and Versions
- Accept or Reject Changes
- DataTable Events
- Updating a Database from a DataSet
- Command Builders
- More About DataSets
- Filtering DataTables
- Multiple Table DataSets
- Schema
- Constraints
- Relations
- Navigating a DataSet
- DataMapping
- Creating a DataSet Programmatically
- XML and ADO.NET
- Strong Coupling Between ADO.NET and XML
- Rendering XML from a DataSet
- Controlling XML Output
- Reading XML into a DataSet
- XML Schema and DataSets
- Typed DataSets
- Table Adapters
- Synchronizing DataSets and XML
- XML Serialization
- Concurrency and Transactions
- DataSets and Concurrency
- Optimistic Concurrency
- Pessimistic Concurrency
- Handling Concurrency Violations
- ADO.NET Transactions
- Database Transactions
- Additional Features
- Asynchronous Database Operations
- Multiple Active Result Sets
- Bulk Copy
- LINQ and Entity Framework
- Language Integrated Query (LINQ)
- Bridging Objects and Data
- Using Object Relational Designer
- Filtering, Ordering and Aggregation
- Inserts, Deletes and Updates
- LINQ to SQL
- LINQ to DataSet
- ADO.NET Entity Framework
- 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 www.intersource.ch.