Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.Delete(String, Object, IType) Method

Delete all objects returned by the query.

[Visual Basic]
Public NotOverridable Overloads Sub Delete( _
   ByVal queryString As String, _
   ByVal values As Object, _
   ByVal types As IType _
) _
    Implements ICommonHibernateOperations.Delete
[C#]
public int Delete(
   string queryString,
   object[] values,
   IType[] types
);

Parameters

queryString
a query expressed in Hibernate's query language.
values
The values of the parameters.
types
Hibernate types of the parameters (or
null
)

Return Value

The number of entity instances deleted.

Implements

ICommonHibernateOperations.Delete

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

HibernateTemplate Class | Spring.Data.NHibernate.Generic Namespace | HibernateTemplate.Delete Overload List