Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.DataSources Namespace
Tortuga.Chain.Metadata Namespace

ISupportsDeleteByKeyList..::..DeleteByKeyList<(Of <(<'TObject, TKey>)>)> Method (IEnumerable<(Of <(<'TKey>)>)>, DeleteOptions)

Deletes a set of records by their primary key.

Namespace:  Tortuga.Chain.DataSources
Assembly:  Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)

Syntax


IMultipleRowDbCommandBuilder<TObject> DeleteByKeyList<TObject, TKey>(
	IEnumerable<TKey> keys,
	DeleteOptions options
)
Function DeleteByKeyList(Of TObject, TKey) ( _
	keys As IEnumerable(Of TKey), _
	options As DeleteOptions _
) As IMultipleRowDbCommandBuilder(Of TObject)
generic<typename TObject, typename TKey>
IMultipleRowDbCommandBuilder<TObject>^ DeleteByKeyList(
	IEnumerable<TKey>^ keys, 
	DeleteOptions^ options
)

Type Parameters

TObject
The type of the object. Used to determine which table will be modified.
TKey

Parameters

keys
Type: IEnumerable<(Of <(<'TKey>)>)>
The keys.
options
Type: Tortuga.Chain..::..DeleteOptions
The options.

Return Value

Remarks


This only works on tables that have a scalar primary key.