Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateDaoSupport.ReleaseSession Method

Close the given Hibernate Session, created via this DAO's SessionFactory, if it isn't bound to the thread.

[Visual Basic]
Protected Sub ReleaseSession( _
   ByVal session As ISession _
)
[C#]
protected void ReleaseSession(
   ISession session
);

Parameters

session
The session to close.

Remarks

Typically used in plain Hibernate code, in combination with the Session property and ConvertHibernateAccessException.

See Also

HibernateDaoSupport Class | Spring.Data.NHibernate.Support Namespace