Occurs before the connection to a database is detached.
The BeforeDisconnect event handler receives an argument of the SessionManipulationEventArgs type. The following properties provide information specific to this event.
|Session||Gets the session currently being processed.|
A session is disconnected from a database via the Session.Disconnect method. As a result the BeforeDisconnect event is raised. The event parameter's SessionManipulationEventArgs.Session property identifies the processed session.
After the connection has been detached the Session.AfterDisconnect event is raised.