Tortuga.Chain Namespace
Tortuga.Chain.Metadata Namespace

PostgreSqlDataSourceBase..::..UpdateByKey<(Of <(<'TArgument, TKey>)>)> Method (PostgreSqlObjectName, TArgument, TKey, UpdateOptions)

Update a record by its primary key.

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

Syntax


public SingleRowDbCommandBuilder<NpgsqlCommand, NpgsqlParameter> UpdateByKey<TArgument, TKey>(
	PostgreSqlObjectName tableName,
	TArgument newValues,
	TKey key,
	UpdateOptions options
)
Public Function UpdateByKey(Of TArgument, TKey) ( _
	tableName As PostgreSqlObjectName, _
	newValues As TArgument, _
	key As TKey, _
	options As UpdateOptions _
) As SingleRowDbCommandBuilder(Of NpgsqlCommand, NpgsqlParameter)
public:
generic<typename TArgument, typename TKey>
SingleRowDbCommandBuilder<NpgsqlCommand^, NpgsqlParameter^>^ UpdateByKey(
	PostgreSqlObjectName^ tableName, 
	TArgument newValues, 
	TKey key, 
	UpdateOptions^ options
)

Type Parameters

TArgument
The type of the t argument.
TKey

Parameters

tableName
Type: Tortuga.Chain.PostgreSql..::..PostgreSqlObjectName
Name of the table.
newValues
Type: TArgument
The new values to use.
key
Type: TKey
The key.
options
Type: Tortuga.Chain..::..UpdateOptions
The options.

Return Value

MultipleRowDbCommandBuilder<AbstractCommand, AbstractParameter>.