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 one value to a "?" parameter of the given type in the query string.

[Visual Basic]
Public Sub Find(Of T)( _
   ByVal queryString As String, _
   ByVal value As Object, _
   ByVal type As IType _
)
[C#]
IList<T> Find<T>(
   string queryString,
   object value,
   IType type
);

Parameters

queryString
a query expressed in Hibernate's query language
value
The value of the parameter.
type
Hibernate type of the parameter (or null)

Return Value

a generic List containing 0 or more persistent instances

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

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