Bind multiple values to a named query parameter, guessing the Hibernate type from the class of the first object in the collection. This is useful for binding a list of values to an expression such as foo.bar in (:value_list)

Namespace:  NHibernate
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Function SetParameterList ( _
	name As String, _
	vals As IEnumerable _
) As IQuery
C#
IQuery SetParameterList(
	string name,
	IEnumerable vals
)
Visual C++
IQuery^ SetParameterList(
	String^ name, 
	IEnumerable^ vals
)
JavaScript
function setParameterList(name, vals);

Parameters

name
Type: System..::.String
The name of the parameter
vals
Type: System.Collections..::.IEnumerable
A collection of values to list

See Also