Delete all objects returned by the query.

Namespace: NHibernate
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
int Delete(
	string query,
	Object[] values,
	IType[] types
)
Visual Basic
Function Delete ( _
	query As String, _
	values As Object(), _
	types As IType() _
) As Integer
Visual C++
int Delete(
	String^ query, 
	array<Object^>^ values, 
	array<IType^>^ types
)

Parameters

query
Type: System..::..String
The query string
values
Type: array<System..::..Object>[]()[][]
A list of values to be written to "?" placeholders in the query
types
Type: array<NHibernate.Type..::..IType>[]()[][]
A list of Hibernate types of the values

Return Value

The number of instances deleted

See Also