Partager via


classe de CSession

Represents a single database access session.

class CSession

Membres

Méthodes

Abandonner

Cancels (terminates) the transaction.

Fermer

Closes the session.

Valider

Valide la transaction.

GetTransactionInfo

Returns information regarding a transaction.

Ouvrez .

Opens a new session for the data source object.

StartTransaction

Begins a new transaction for this session.

Notes

One or more sessions can be associated with each provider connection (data source), which is represented by a CDataSource object. To create a new CSession for a CDataSource, call CSession::Open. To begin a database transaction, CSession provides the StartTransaction method. Once a transaction is started, you can commit to it using the Commit method, or cancel it using the Abort method.

Configuration requise

Header: atldbcli.h

Voir aussi

Concepts

CatDB

Modèles du consommateur OLE DB (C++)

Référence des modèles du consommateur OLE DB