Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.Execute(IHibernateCallback, Boolean) Method

Execute the action specified by the given action object within a Session.

[Visual Basic]
Public Overloads Sub Execute( _
   ByVal action As IHibernateCallback, _
   ByVal exposeNativeSession As Boolean _
)
[C#]
public object Execute(
   IHibernateCallback action,
   bool exposeNativeSession
);

Parameters

action
callback object that specifies the Hibernate action.
exposeNativeSession
if set to true expose the native hibernate session to callback code.

Return Value

a result object returned by the action, or

null

See Also

HibernateTemplate Class | Spring.Data.NHibernate Namespace | HibernateTemplate.Execute Overload List