Looking At the ADO Object Models

That's right, object models, plural. Unlike DAO, which consists of one object model, ADO has several separate object models.

Note

graphics/note_icon.gif

With ADO.NET, you use Namespaces and classes rather than references and object models. Although this takes some getting used to, it isn't too bad after a while.


ADO's object models work together to give you the objects and collections that are necessary to work with your data. A couple of the object models consist of the following:

Although these are separate object models and will be explained as such, you will also use them cohesively. For instance, to modify the table's structure, you need to get to the Tables collection located off the Catalog object in the ADOX library; however, this Catalog will have its ActiveConnection property set to the Connection object (ADODB). Take a look at what makes up the individual object models.

The ActiveX Data Objects 2.7 (ADODB) Object Model

The ActiveX Data Objects object model (see Figure A.1) consists of the following:

Figure A.1. The object model for ActiveX Data Objects 2.7.

graphics/afig01.gif

Most of the work is done in the ADODB module when you use ADO. Whenever you use recordsets, this is also the object model to use.