Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

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

Execute a query for persistent instances, binding a number of values to named parameters in the query string.

[Visual Basic]
Public Sub FindByNamedParam(Of T)( _
   ByVal queryString As String, _
   ByVal paramNames As String, _
   ByVal values As Object _
)
[C#]
IList<T> FindByNamedParam<T>(
   string queryString,
   string[] paramNames,
   object[] values
);

Parameters

queryString
A query expressed in Hibernate's query language
paramNames
The names of the parameters
values
The values of the parameters

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.FindByNamedParam(T) Overload List