Close the session and release all resources

Remarks

Do not call this method inside a transaction scope, use Dispose instead, since Close() is not aware of distributed transactions

Namespace: NHibernate.Impl
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public IDbConnection Close()
Visual Basic
Public Function Close As IDbConnection
Visual C++
public:
virtual IDbConnection^ Close() sealed

Return Value

[Missing <returns> documentation for "M:NHibernate.Impl.SessionImpl.Close"]

Implements

ISession..::..Close()()()()

See Also