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

ISupportsGetByKeyList..::..GetByKeyList<(Of <(<'TObject, TKey>)>)> Method (IEnumerable<(Of <(<'TKey>)>)>)

Gets a set of records by their primary key.

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

Syntax


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

Type Parameters

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

Parameters

keys
Type: IEnumerable<(Of <(<'TKey>)>)>
The keys.

Return Value

Remarks


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