O'Reilly logo

Extending MFC Applications with the .NET Framework by Nishant Sivakumar, Tom Archer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required