Instructor-led training
ADO .NET Using C# Training in Terrell, Texas
This three-day intensive course 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.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Terrell, Texas or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
What makes ADO.NET hard to master
The API is not large. The difficulty is choosing between two data-access models and knowing what each one costs. The syllabus builds in that order.
- Connected access first. Connections, connection strings, connection pooling and connection events come before commands. Commands cover parameterized queries, stored procedures and batch queries. DataReaders add type-safe accessors, null columns, multiple result sets and schema information. Pooling is where many developers go wrong: it only helps if connections are opened late and released promptly, and error handling decides whether they are released at all.
- Disconnected access next. DataSet, DataAdapter, DataTable, DataRow, row states and versions, accept or reject changes, and command builders. A common misconception is that a DataSet is an in-memory copy of the database. It is a change-tracking container, and what it sends back to the database depends on row states and the update commands behind the adapter.
- Relational structure and XML. Multiple-table DataSets, constraints, relations, typed DataSets, table adapters, and reading and rendering XML. The course treats ADO.NET and XML as tightly coupled, which is why the prerequisites include XML fundamentals.
- Concurrency and transactions. Optimistic and pessimistic concurrency, handling violations, and database versus ADO.NET transactions. These topics need everything before them. A conflict is only visible if you understand row versions, and a transaction boundary only makes sense once you know which commands share a connection.
- Additional features and LINQ. Asynchronous operations, multiple active result sets, bulk copy, LINQ to SQL, LINQ to DataSet and LINQ to Entities. LINQ queries run later than they read, so developers often misjudge when the database is actually hit.
The Acme Computer case study ties these pieces together in one realistic application.
Who it suits and what to take around it
The course is general level and runs three days. It suits developers who already write C# and know basic SQL, along with the XML, Windows Forms and SQL Server background listed in the prerequisites. It also suits teams that maintain database applications built on ADO.NET and need a shared grounding in DataSets, concurrency and transactions.
The syllabus names .NET Framework 4.6 and Visual Studio 2017. Microsoft's lifecycle information says support for .NET Framework 4.5.2, 4.6 and 4.6.1 ended in April 2022, and Visual Studio 2017 is in extended support until April 2027. This fits organizations that build, maintain, support or migrate systems on those versions. Teams working with newer releases can request a training proposal to discuss private training tailored to the versions they use.
If your C# foundation is thin, start with C# and .NET Essentials, Rev. 8.0. If you are comfortable with the language but not the runtime and class libraries, .NET Framework Using C# gives context for the namespaces, interfaces and deployment concerns this course assumes. More options are in the .NET courses and learning guide.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- Order-entry screen with concurrent editors. A team might load order rows into a DataTable, let users edit them offline, and write changes back through a DataAdapter. Row states, optimistic concurrency and handling concurrency violations decide what happens when two users change the same row.
- Nightly import job. A team might read a large file, load it with bulk copy inside a transaction, and use parameterized commands and stored procedures for the rest. Connection handling, error handling, transactions and asynchronous operations all apply.
- Maintaining an older reporting tool. A developer might inherit code that mixes DataReaders, typed DataSets and XML output. The syllabus topics on schema information, null columns, rendering XML from a DataSet and LINQ to DataSet help them trace where data changes shape and decide what to refactor.
AI coding assistants and ADO.NET
AI coding assistants write routine data-access code quickly: a parameterized command, a DataReader loop, a LINQ filter. They are weaker where this course concentrates.
- Resource cleanup. Generated code often leaves connections, commands or readers undisposed on error paths, which undermines connection pooling.
- Query construction. An assistant may build SQL by string concatenation. Check that every value goes through a parameter.
- Concurrency and transactions. Generated update logic usually ignores row versions and conflict handling, and may place transaction boundaries incorrectly.
- Async and LINQ. Async calls can block or be left unawaited. Deferred execution can cause repeated queries or queries that run after the connection closes.
- API fit. Suggestions may use libraries or Entity Framework styles that do not exist in the .NET Framework version you target.
To verify, run the code against a test database and inspect the SQL it actually sends. Force a concurrency conflict and a mid-transaction failure on purpose. Check that connections return to the pool, and confirm that every API compiles against your target framework. The syllabus topics give you the checklist for reviewing generated code.
Frequently asked questions
What level is this course?
General level over three days. It assumes you already program in C# and know basic SQL, so it is not an introduction to either.
What should I know before attending?
Basic SQL, C# programming on the .NET Framework, and XML fundamentals. Being able to write simple Windows Forms applications helps with the examples, and working knowledge of SQL Server is desirable.
What does the course cover?
Connections and pooling, commands and stored procedures, DataReaders, DataSets and DataAdapters, XML integration and typed DataSets, concurrency and transactions, asynchronous operations, bulk copy, and LINQ with the ADO.NET Entity Framework. A case study applies these topics together.
Can this be delivered privately, onsite or online?
Yes. Private training for organizations can be delivered onsite or live online.
Can the content be customized?
Private courses can be tailored to the technology versions and priorities of your team, including newer releases. Use the training proposal request to describe your environment.
Training locations
ADO .NET Using C# training across the U.S. and beyond.
We provide private ADO .NET Using C# training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all ADO .NET Using C# training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.