Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.Find(T)(String, Object) Method

Execute a query for persistent instances, binding one value to a "?" parameter in the query string.

[Visual Basic]
Public NotOverridable Overloads Sub Find(Of T)( _
   ByVal queryString As String, _
   ByVal value As Object _
) _
    Implements IHibernateOperations.Find
[C#]
public IList<T> Find<T>(
   string queryString,
   object value
);

Parameters

queryString
a query expressed in Hibernate's query language
value
the value of the parameter

Return Value

a generic List containing 0 or more persistent instances

Implements

IHibernateOperations.Find

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

HibernateTemplate Class | Spring.Data.NHibernate.Generic Namespace | HibernateTemplate.Find(T) Overload List