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

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

Syntax

C#
IQuery SetEntity(
	int position,
	Object val
)
Visual Basic
Function SetEntity ( _
	position As Integer, _
	val As Object _
) As IQuery
Visual C++
IQuery^ SetEntity(
	int position, 
	Object^ 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

Return Value

[Missing <returns> documentation for "M:NHibernate.IQuery.SetEntity(System.Int32,System.Object)"]

See Also