Get a strategy instance which knows how to acquire a database-level lock
of the specified mode for this dialect.
Namespace: NHibernate.DialectAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public virtual ILockingStrategy GetLockingStrategy( ILockable lockable, LockMode lockMode ) |
Visual Basic |
---|
Public Overridable Function GetLockingStrategy ( _ lockable As ILockable, _ lockMode As LockMode _ ) As ILockingStrategy |
Visual C++ |
---|
public: virtual ILockingStrategy^ GetLockingStrategy( ILockable^ lockable, LockMode^ lockMode ) |
Parameters
- lockable
- Type: NHibernate.Persister.Entity..::..ILockable
The persister for the entity to be locked.
- lockMode
- Type: NHibernate..::..LockMode
The type of lock to be acquired.