CDaoDatabase::GetRelationCount

short GetRelationCount( );
throw( CDaoException, CMemoryException );

Return Value

The number of relations defined between tables in the database.

Remarks

Call this member function to obtain the number of relations defined between tables in the database. GetRelationCount is useful if you need to loop through all defined relations in the database’s Relations collection. To obtain information about a given relation in the collection, see GetRelationInfo.

To illustrate the concept of a relation, consider a Suppliers table and a Products table, which might have a one-to-many relationship. In this relationship, one supplier can supply more than one product. Other relations are one-to-one and many-to-many.

For more information about database objects, see the article DAO Database in Visual C++ Programmer's Guide.

CDaoDatabase OverviewClass MembersHierarchy Chart