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

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

Syntax

Visual Basic (Declaration)
Function SetEntity ( _
	name As String, _
	val As Object _
) As IQuery
C#
IQuery SetEntity(
	string name,
	Object val
)
Visual C++
IQuery^ SetEntity(
	String^ name, 
	Object^ val
)
JavaScript
function setEntity(name, val);

Parameters

name
Type: System..::.String
The name of the parameter
val
Type: System..::.Object
A non-null instance of a persistent class

See Also