Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.DeleteAll Method

Delete all given persistent instances.

[Visual Basic]
Public NotOverridable Sub DeleteAll( _
   ByVal entities As ICollection _
) _
    Implements IHibernateOperations.DeleteAll
[C#]
public void DeleteAll(
   ICollection entities
);

Parameters

entities
The persistent instances to delete.

Implements

IHibernateOperations.DeleteAll

Remarks

This can be combined with any of the find methods to delete by query in two lines of code, similar to Session's delete by query methods.

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

HibernateTemplate Class | Spring.Data.NHibernate Namespace