NPersistence Reference Guide
Check if the instance is a managed entity instance belonging to the current persistence context.

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

Syntax

   
 C# 
bool Contains(
	Object entity
)

Parameters

entity
Object
entity instance

Return Value

boolean indicating if entity is in persistence context

Exceptions

ExceptionCondition
System..::..ArgumentException if not an entity

See Also