Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

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

Generic template parameters

T
The type of result object

Remarks

Allows for returning the result object created within the callback. Note that there's special support for single step actions: see HibernateTemplate.find etc.

Requirements

Namespace: Spring.Data.NHibernate.Generic

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

See Also

Spring.Data.NHibernate.Generic Namespace