NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Thrown by the persistence provider when an optimistic locking conflict
occurs. This exception may be thrown as part of an API call, a flush or at
commit time. The current transaction, if one is active, will be marked for
rollback.
Namespace: NPersistenceAssembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
public class OptimisticLockException : PersistenceException
Members
All Members | Constructors | Methods |
Public Protected | Instance Static | Declared Inherited | XNA Framework Only .NET Compact Framework Only |
Member | Description | |
---|---|---|
OptimisticLockException()()()() | Constructs a new OptimisticLockException exception with
null as its detail message.
| |
OptimisticLockException(Exception) | Constructs a new OptimisticLockException exception with the
specified cause.
| |
OptimisticLockException(Object) | Constructs a new OptimisticLockException exception with the
specified entity.
| |
OptimisticLockException(String) | Constructs a new OptimisticLockException exception with the
specified detail message.
| |
OptimisticLockException(String, Exception) | Constructs a new OptimisticLockException exception with the
specified detail message and cause.
| |
OptimisticLockException(String, Exception, Object) | Constructs a new OptimisticLockException exception with the
specified detail message, cause, and entity.
| |
GetEntity()()()() | Returns the entity that caused this exception.
|
Inheritance Hierarchy
System..::..Object
System..::..Exception
NPersistence..::..PersistenceException
NPersistence..::..OptimisticLockException
System..::..Exception
NPersistence..::..PersistenceException
NPersistence..::..OptimisticLockException
See Also
[M:EntityManager.Find(Type, Object, LockModeType, T:System.Collections.Generic.Dictionary`2)]
[M:EntityManager.Lock(Object, LockModeType, T:System.Collections.Generic.Dictionary`2)]