Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

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

Execute the action specified by the given action object within a Session assuming that an IList is returned.

[Visual Basic]
Public Sub ExecuteFind(Of T)( _
   ByVal action As IFindHibernateCallback(Of T), _
   ByVal exposeNativeSession As Boolean _
IList<T> ExecuteFind<T>(
   IFindHibernateCallback<T> action,
   bool exposeNativeSession


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

Return Value

an IList returned by the action, or null


Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

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