Bind an instance of a mapped persistent class to an indexed parameter.

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

Syntax

Visual Basic (Declaration)
Function SetEntity ( _
	position As Integer, _
	val As Object _
) As IQuery
C#
IQuery SetEntity(
	int position,
	Object val
)
Visual C++
IQuery^ SetEntity(
	int position, 
	Object^ val
)
JavaScript
function setEntity(position, val);

Parameters

position
Type: System..::.Int32
Position of the parameter in the query string, numbered from 0
val
Type: System..::.Object
A non-null instance of a persistent class

See Also