Some dialects support an alternative means to SELECT FOR UPDATE, whereby a "lock hint" is appends to the table name in the from clause.

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

Syntax

C#
public virtual string AppendLockHint(
	LockMode lockMode,
	string tableName
)
Visual Basic
Public Overridable Function AppendLockHint ( _
	lockMode As LockMode, _
	tableName As String _
) As String
Visual C++
public:
virtual String^ AppendLockHint(
	LockMode^ lockMode, 
	String^ tableName
)

Parameters

lockMode
Type: NHibernate..::..LockMode
The lock mode to apply
tableName
Type: System..::..String
The name of the table to which to apply the lock hint.

Return Value

The table with any required lock hints.

See Also