NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Get the current lock mode for the entity instance.
Namespace: NPersistenceAssembly: 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 modeExceptions
Exception | Condition |
---|---|
NPersistence..::..TransactionRequiredException | if there is no transaction |
System..::..ArgumentException | if the instance is not a managed entity and a transaction is active |