NPersistence Reference Guide
Get the current lock mode for the entity instance.

Namespace: NPersistence
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

   
 C# 
LockModeType GetLockMode(
	Object entity
)

Parameters

entity
Object
entity instance

Return Value

lock mode

Exceptions

ExceptionCondition
NPersistence..::..TransactionRequiredException if there is no transaction
System..::..ArgumentException if the instance is not a managed entity and a transaction is active

See Also