Remove this instance from the session cache.

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

Syntax

C#
void Evict(
	Object obj
)
Visual Basic
Sub Evict ( _
	obj As Object _
)
Visual C++
void Evict(
	Object^ 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