Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IHibernateOperations.DeleteAll Method

Delete all given persistent instances.

[Visual Basic]
Public Sub DeleteAll( _
   ByVal entities As ICollection _
)
[C#]
void DeleteAll(
   ICollection entities
);

Parameters

entities
The persistent instances to delete.

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

IHibernateOperations Interface | Spring.Data.NHibernate Namespace