MySqlDataSourceBase..::..GetByKey<(Of <(<'TKey>)>)> Method (MySqlObjectName, TKey)
Gets a record by its primary key.
Namespace:
Tortuga.Chain.MySqlAssembly: Tortuga.Chain.MySql (in Tortuga.Chain.MySql.dll)
Syntax
[SuppressMessageAttribute] public SingleRowDbCommandBuilder<MySqlCommand, MySqlParameter> GetByKey<TKey>( MySqlObjectName tableName, TKey key )
<SuppressMessageAttribute> _ Public Function GetByKey(Of TKey) ( _ tableName As MySqlObjectName, _ key As TKey _ ) As SingleRowDbCommandBuilder(Of MySqlCommand, MySqlParameter)
[SuppressMessageAttribute] public: generic<typename TKey> SingleRowDbCommandBuilder<MySqlCommand^, MySqlParameter^>^ GetByKey( MySqlObjectName^ tableName, TKey key )
Type Parameters
- TKey
Parameters
- tableName
- Type: Tortuga.Chain.MySql..::..MySqlObjectName
Name of the table.
- key
- Type: TKey
The key.