Skip Headers

# Session Event Manager Events

Previous

Next

The session event manager supports the session events listed in the following tables:

- Table: Session Events

- Table: Unit of Work Events

Session Events

Event | Description
--- | ---
MissingDescriptor | Raised if a descriptor is missing for a class being persisted. You can use this event to lazy register the descriptor or set of descriptors.
MoreRowsDetected | Raised when a `ReadObjectQuery` detects more than one row returned from the database. This event can indicate a possible error condition in your application.
NoRowsModified | Raised after update or delete SQL has been sent to the database and a row count of zero is returned.
OutputParametersDetected | Raised after a stored procedure call with output parameters executes. This event enables you to retrieve a result set and output parameters from a single stored procedure.
PostAcquireClientSession | Raised after a client Session is acquired
PostAcquireConnection | Raised after acquiring a connection
PostAcquireExclusiveConnection | Raised when a client Session, with isolated data, acquires an exclusive connection.
PostBeginTransaction | Raised after a database transaction starts
PostCommitTransaction | Raised after a database transaction commits
PostConnect | Raised after connecting to the database
PostExecuteQuery | Raised after the execution of every query on the session
PostLogin | Raised after the Session initializes and acquires connections
PostReleaseClientSession | Raised after releasing a client Session
PostRollbackTransaction | Raised after a database transaction rolls back
PreBeginTransaction | Raised before a database transaction starts
PreCommitTransaction | Raised before a database transaction commits
PreExecuteQuery | Raised before the execution of every query on the session
PreLogin | Raised before the Session initializes and acquires connections
PreReleaseClientSession | Raised before releasing a client Session
PreReleaseConnection | Raised before releasing a connection
PreReleaseExclusiveConnection | Raised before a client Session, with isolated data, releases its exclusive connection.
PreRollbackTransaction | Raised before a database transaction rolls back

Unit of Work Events

Event | Description
--- | ---
PostAcquireUnitOfWork | Raised after a `UnitOfWork` is acquired
PostCalculateUnitOfWorkChangeSet | Raised after the commit has begun on the `UnitOfWork` and after the changes are calculated. The `UnitOfWorkChangeSet`, at this point, will contain change sets without the version fields updated and without identity field type primary keys. These will be updated after the insert, or update, of the object.
PostCommitUnitOfWork | Raised after a `UnitOfWork` commits
PostDistributedMergeUnitOfWorkChangeSet | Raised after a `UnitOfWork` change set has been merged when that change set has been received from a distributed session.
PostMergeUnitOfWorkChangeSet | Raised after a `UnitOfWork` change set has been merged.
PostReleaseUnitOfWork | Raised on a `UnitOfWork` after it is released.
PostResumeUnitOfWork | Raised on a `UnitOfWork` after it resumes.
PreCalculateUnitOfWorkChangeSet | Raised after the commit has begun on the `UnitOfWork` but before the changes are calculated.
PreCommitUnitOfWork | Raised before a `UnitOfWork` commits.
PreDistributedMergeUnitOfWorkChangeSet | Raised before a `UnitOfWork` change set has been merged when that change set has been received from a distributed session.
PreMergeUnitOfWorkChangeSet | Raised before a `UnitOfWork` change set has been merged.
PrepareUnitOfWork | Raised after the a `UnitOfWork` flushes its SQL, but before it commits its transaction.
PreReleaseUnitOfWork | Raised on a `UnitOfWork` before it is released.