Remove this instance from the session cache.

Namespace:  NHibernate
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Sub Evict ( _
	obj As Object _
)
C#
void Evict(
	Object obj
)
Visual C++
void Evict(
	Object^ obj
)
JavaScript
function evict(obj);

Parameters

obj
Type: System..::.Object
a persistent instance

Remarks

Changes to the instance will not be synchronized with the database. This operation cascades to associated instances if the association is mapped with cascade="all" or cascade="all-delete-orphan".

See Also