Tortuga.Chain Namespace
Tortuga.Chain.Metadata Namespace

MySqlDataSourceBase..::..GetByKeyList<(Of <(<'TKey>)>)> Method (MySqlObjectName, IEnumerable<(Of <(<'TKey>)>)>)

Gets a set of records by their primary key.

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

Syntax


[SuppressMessageAttribute]
public MultipleRowDbCommandBuilder<MySqlCommand, MySqlParameter> GetByKeyList<TKey>(
	MySqlObjectName tableName,
	IEnumerable<TKey> keys
)
<SuppressMessageAttribute> _
Public Function GetByKeyList(Of TKey) ( _
	tableName As MySqlObjectName, _
	keys As IEnumerable(Of TKey) _
) As MultipleRowDbCommandBuilder(Of MySqlCommand, MySqlParameter)
[SuppressMessageAttribute]
public:
generic<typename TKey>
MultipleRowDbCommandBuilder<MySqlCommand^, MySqlParameter^>^ GetByKeyList(
	MySqlObjectName^ tableName, 
	IEnumerable<TKey>^ keys
)

Type Parameters

TKey

Parameters

tableName
Type: Tortuga.Chain.MySql..::..MySqlObjectName
Name of the table.
keys
Type: IEnumerable<(Of <(<'TKey>)>)>
The keys.

Return Value

Remarks


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