NPersistence Reference Guide
Thrown by the persistence provider when an entity reference obtained by GetReference<(Of <<'(T>)>>)(Type, Object) is accessed but the entity does not exist.

Thrown when Refresh(Object) is called and the object no longer exists in the database.

Thrown when Lock(Object, LockModeType) is used with pessimistic locking is used and the entity no longer exists in the database. The current transaction, if one is active, will be marked for rollback.

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

Syntax

   
 C# 
public class EntityNotFoundException : PersistenceException

Members

      
 All Members  Constructors  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
EntityNotFoundException()()()()
Constructs a new EntityNotFoundException exception with null as its detail message.
EntityNotFoundException(String)
Constructs a new EntityNotFoundException exception with the specified detail message.

Inheritance Hierarchy

System..::..Object
  System..::..Exception
    NPersistence..::..PersistenceException
      NPersistence..::..EntityNotFoundException

See Also

[M:EntityManager.Refresh(Object, T:Dictionary`2)]
[M:EntityManager.Refresh(Object, LockModeType, T:Dictionary`2)]
[M:EntityManager.Lock(Object, LockModeType, T:Dictionary`2)]