Basic Database Operations with ADO.NET

Whether you're working with a connected or disconnected data store, the majority of database operations involve NURD work—New, Update, Read, Delete. However, as this section will illustrate, many of the sometimes very tedious database operations are made much easier with the help of the various ADO.NET classes.

Quick Note on This Section's Examples

This section's code snippets are all freestanding functions that can be plugged directly into your own test applications. They make the sole assumption that the DataSet, DataAdapter, DataTable, and CommandBuilder objects have all been properly constructed. For example, in an SDI application you might declare each of these as member variables of the view and instantiate ...

Get Extending MFC Applications with the .NET Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.