Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IHibernateOperations.Find(T)(String, Object, IType) Method

Execute a query for persistent instances, binding a number of values to "?" parameters of the given types in the query string.

[Visual Basic]
Public Sub Find(Of T)( _
   ByVal queryString As String, _
   ByVal values As Object, _
   ByVal types As IType _
IList<T> Find<T>(
   string queryString,
   object[] values,
   IType[] types


A query expressed in Hibernate's query language
The values of the parameters
Hibernate types of the parameters (or null)

Return Value

a generic List containing 0 or more persistent instances


Exception Type Condition
DataAccessException In case of Hibernate errors
ArgumentException If values and types are not null and their lenths are not equal

See Also

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