Set the lockmode for the objects idententified by the given alias that appears in the FROM clause.

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

Syntax

C#
IQuery SetLockMode(
	string alias,
	LockMode lockMode
)
Visual Basic
Function SetLockMode ( _
	alias As String, _
	lockMode As LockMode _
) As IQuery
Visual C++
IQuery^ SetLockMode(
	String^ alias, 
	LockMode^ lockMode
)

Parameters

alias
Type: System..::..String
alias a query alias, or this for a collection filter
lockMode
Type: NHibernate..::..LockMode

[Missing <param name="lockMode"/> documentation for "M:NHibernate.IQuery.SetLockMode(System.String,NHibernate.LockMode)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.IQuery.SetLockMode(System.String,NHibernate.LockMode)"]

See Also