Bind multiple values to a named query parameter, guessing the NHibernate 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) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
IQuery SetParameterList(
	string name,
	IEnumerable vals
)
Visual Basic
Function SetParameterList ( _
	name As String, _
	vals As IEnumerable _
) As IQuery
Visual C++
IQuery^ SetParameterList(
	String^ name, 
	IEnumerable^ vals
)

Parameters

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

Return Value

[Missing <returns> documentation for "M:NHibernate.IQuery.SetParameterList(System.String,System.Collections.IEnumerable)"]

See Also