MySqlDataSourceBase..::..UpdateByKey<(Of <(<'TArgument>)>)> Method (String, TArgument, String)
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>( string tableName, TArgument newValues, string key )
Public Function UpdateByKey(Of TArgument) ( _ tableName As String, _ newValues As TArgument, _ key As String _ ) As SingleRowDbCommandBuilder(Of MySqlCommand, MySqlParameter)
public: generic<typename TArgument> SingleRowDbCommandBuilder<MySqlCommand^, MySqlParameter^>^ UpdateByKey( String^ tableName, TArgument newValues, String^ key )
Type Parameters
- TArgument
- The type of the t argument.
Parameters
- tableName
- Type: String
Name of the table.
- newValues
- Type: TArgument
The new values to use.
- key
- Type: String
The key.