Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

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

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

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

Parameters

queryName
The name of a Hibernate query in a mapping file
paramName
The name of the parameter
value
The value of the parameter

Return Value

a generic List containing 0 or more persistent instances

Implements

IHibernateOperations.FindByNamedParam

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

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