MySqlDataSourceBase..::..UpdateByKey<(Of <(<'TArgument, TKey>)>)> Method (MySqlObjectName, TArgument, TKey, UpdateOptions)
Update a record by its primary key.
Namespace:
Tortuga.Chain.MySqlAssembly: Tortuga.Chain.MySql (in Tortuga.Chain.MySql.dll)
Syntax
public SingleRowDbCommandBuilder<MySqlCommand, MySqlParameter> UpdateByKey<TArgument, TKey>( MySqlObjectName tableName, TArgument newValues, TKey key, UpdateOptions options )
Public Function UpdateByKey(Of TArgument, TKey) ( _ tableName As MySqlObjectName, _ newValues As TArgument, _ key As TKey, _ options As UpdateOptions _ ) As SingleRowDbCommandBuilder(Of MySqlCommand, MySqlParameter)
public: generic<typename TArgument, typename TKey> SingleRowDbCommandBuilder<MySqlCommand^, MySqlParameter^>^ UpdateByKey( MySqlObjectName^ tableName, TArgument newValues, TKey key, UpdateOptions^ options )
Type Parameters
- TArgument
- The type of the t argument.
- TKey
Parameters
- tableName
- Type: Tortuga.Chain.MySql..::..MySqlObjectName
Name of the table.
- newValues
- Type: TArgument
The new values to use.
- key
- Type: TKey
The key.
- options
- Type: Tortuga.Chain..::..UpdateOptions
The options.