IHibernateCallback.DoInHibernate Method
Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IHibernateCallback.DoInHibernate Method

Gets called by HibernateTemplate with an active Hibernate Session. Does not need to care about activating or closing the Session, or handling transactions.

[Visual Basic]
Public Sub DoInHibernate( _
   ByVal session As ISession _
object DoInHibernate(
   ISession session

Return Value

A result object, or null if none.


Allows for returning a result object created within the callback, i.e. a domain object or a collection of domain objects. Note that there's special support for single step actions: see HibernateTemplate.find etc.

See Also

IHibernateCallback Interface | Spring.Data.NHibernate Namespace