MySqlDataSourceBase..::..GetByKeyList<(Of <(<'TObject, TKey>)>)> Method (MySqlObjectName, String, IEnumerable<(Of <(<'TKey>)>)>)
Gets a set of records by a key list.
Namespace:
Tortuga.Chain.MySqlAssembly: Tortuga.Chain.MySql (in Tortuga.Chain.MySql.dll)
Syntax
[SuppressMessageAttribute] public MultipleRowDbCommandBuilder<MySqlCommand, MySqlParameter, TObject> GetByKeyList<TObject, TKey>( MySqlObjectName tableName, string keyColumn, IEnumerable<TKey> keys )
<SuppressMessageAttribute> _ Public Function GetByKeyList(Of TObject, TKey) ( _ tableName As MySqlObjectName, _ keyColumn As String, _ keys As IEnumerable(Of TKey) _ ) As MultipleRowDbCommandBuilder(Of MySqlCommand, MySqlParameter, TObject)
[SuppressMessageAttribute] public: generic<typename TObject, typename TKey> MultipleRowDbCommandBuilder<MySqlCommand^, MySqlParameter^, TObject>^ GetByKeyList( MySqlObjectName^ tableName, String^ keyColumn, IEnumerable<TKey>^ keys )
Type Parameters
- TObject
- The type of the t object.
- TKey
- The type of the t key.
Parameters
- tableName
- Type: Tortuga.Chain.MySql..::..MySqlObjectName
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
MultipleRowDbCommandBuilder<AbstractCommand, AbstractParameter, TObject>.Exceptions
Exception | Condition |
---|---|
Tortuga.Chain..::..MappingException | Cannot find a column named {keyColumn} on table {tableName}. |