Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateDelegate Delegate

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 Delegate Function HibernateDelegate( _
   ByVal session As ISession _
)
[C#]
public delegate object HibernateDelegate(
   ISession session
);

Remarks

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.

Requirements

Namespace: Spring.Data.NHibernate

Assembly: Spring.Data.NHibernate21 (in Spring.Data.NHibernate21.dll)

See Also

Spring.Data.NHibernate Namespace