Tortuga.Chain Namespace
Tortuga.Chain.Metadata Namespace

IClass1DataSource..::..GetByKeyList<(Of <(<'TKey>)>)> Method (String, String, IEnumerable<(Of <(<'TKey>)>)>)

Gets a set of records by an unique key.

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

Syntax


IMultipleRowDbCommandBuilder GetByKeyList<TKey>(
	string tableName,
	string keyColumn,
	IEnumerable<TKey> keys
)
Function GetByKeyList(Of TKey) ( _
	tableName As String, _
	keyColumn As String, _
	keys As IEnumerable(Of TKey) _
) As IMultipleRowDbCommandBuilder
generic<typename TKey>
IMultipleRowDbCommandBuilder^ GetByKeyList(
	String^ tableName, 
	String^ keyColumn, 
	IEnumerable<TKey>^ keys
)

Type Parameters

TKey
The type of the t key.

Parameters

tableName
Type: String
Name of the table.
keyColumn
Type: String
Name of the key column. This should be a primary or unique key, but that's not enforced.
keys
Type: IEnumerable<(Of <(<'TKey>)>)>
The keys.

Return Value

IMultipleRowDbCommandBuilder.

Remarks


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