Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IHibernateOperations.ExecuteFind(T)(FindHibernateDelegate, Boolean) Method

Execute the action specified by the delegate within a Session.

[Visual Basic]
Public Sub ExecuteFind(Of T)( _
   ByVal del As FindHibernateDelegate(Of T), _
   ByVal exposeNativeSession As Boolean _
)
[C#]
IList<T> ExecuteFind<T>(
   FindHibernateDelegate<T> del,
   bool exposeNativeSession
);

Parameters

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

Return Value

A generic IList returned by the action, or null

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

IHibernateOperations Interface | Spring.Data.NHibernate.Generic Namespace | IHibernateOperations.ExecuteFind(T) Overload List