Disconnect the ISession from the current ADO.NET connection.
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
IDbConnection Disconnect() |
Visual Basic |
---|
Function Disconnect As IDbConnection |
Visual C++ |
---|
IDbConnection^ Disconnect() |
Return Value
The connection provided by the application or nullNothingnullptra null reference (Nothing in Visual Basic)Remarks
If the connection was obtained by Hibernate, close it or return it to the connection
pool. Otherwise return it to the application. This is used by applications which require
long transactions.