Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.Execute(T)(HibernateDelegate, Boolean) Method

Execute the action specified by the delegate within a Session.

[Visual Basic]
Public NotOverridable Overloads Sub Execute(Of T)( _
   ByVal del As HibernateDelegate(Of T), _
   ByVal exposeNativeSession As Boolean _
) _
    Implements IHibernateOperations.Execute
[C#]
public T Execute<T>(
   HibernateDelegate<T> del,
   bool exposeNativeSession
);

Parameters

del
The HibernateDelegate that specifies the action to perform.
exposeNativeSession
if set to true expose the native hibernate session to callback code.

Return Value

a result object returned by the action, or null

Implements

IHibernateOperations.Execute

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

HibernateTemplate Class | Spring.Data.NHibernate.Generic Namespace | HibernateTemplate.Execute(T) Overload List