Deletes all targetType objects, based on the primary keys supplied on pkValues.

Namespace: Castle.ActiveRecord
Assembly:  Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0

Syntax

C#
public static int DeleteAll(
	Type targetType,
	IEnumerable pkValues
)

Parameters

targetType
Type
The target ActiveRecord type
pkValues
IEnumerable
A list of primary keys

Return Value

The number of objects deleted

See Also