Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.Evict Method

Remove the given object from the Session cache.

[Visual Basic]
Public NotOverridable Sub Evict( _
   ByVal entity As Object _
) _
    Implements ICommonHibernateOperations.Evict
[C#]
public void Evict(
   object entity
);

Parameters

entity
The persistent instance to evict.

Implements

ICommonHibernateOperations.Evict

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

HibernateTemplate Class | Spring.Data.NHibernate Namespace