Construct a locking strategy based on SQL UPDATE statements.

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

Syntax

C#
public UpdateLockingStrategy(
	ILockable lockable,
	LockMode lockMode
)
Visual Basic
Public Sub New ( _
	lockable As ILockable, _
	lockMode As LockMode _
)
Visual C++
public:
UpdateLockingStrategy(
	ILockable^ lockable, 
	LockMode^ lockMode
)

Parameters

lockable
Type: NHibernate.Persister.Entity..::..ILockable
The metadata for the entity to be locked.
lockMode
Type: NHibernate..::..LockMode
Indictates the type of lock to be acquired.

Remarks

read-locks are not valid for this strategy.

See Also