Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ICommonHibernateOperations.Delete(String, Object, IType) Method

Delete all objects returned by the query.

[Visual Basic]
Public Sub Delete( _
   ByVal queryString As String, _
   ByVal value As Object, _
   ByVal type As IType _
)
[C#]
int Delete(
   string queryString,
   object value,
   IType type
);

Parameters

queryString
a query expressed in Hibernate's query language.
value
The value of the parameter.
type
The Hibernate type of the parameter (or
null
).

Return Value

The number of entity instances deleted.

Exceptions

Exception Type Condition
DataAccessException In case of Hibernate errors

See Also

ICommonHibernateOperations Interface | Spring.Data.NHibernate Namespace | ICommonHibernateOperations.Delete Overload List