Tortuga.Chain Namespace
Tortuga.Chain.CommandBuilders Namespace
Tortuga.Chain.Metadata Namespace

ISupportsUpdateByKeyList..::..UpdateByKeyList<(Of <(<'TArgument, TKey>)>)> Method

Update multiple rows by key.

Namespace:  Tortuga.Chain.DataSources
Assembly:  Tortuga.Chain.Core (in Tortuga.Chain.Core.dll)

Syntax


IMultipleRowDbCommandBuilder UpdateByKeyList<TArgument, TKey>(
	string tableName,
	TArgument newValues,
	IEnumerable<TKey> keys,
	UpdateOptions options
)
Function UpdateByKeyList(Of TArgument, TKey) ( _
	tableName As String, _
	newValues As TArgument, _
	keys As IEnumerable(Of TKey), _
	options As UpdateOptions _
) As IMultipleRowDbCommandBuilder
generic<typename TArgument, typename TKey>
IMultipleRowDbCommandBuilder^ UpdateByKeyList(
	String^ tableName, 
	TArgument newValues, 
	IEnumerable<TKey>^ keys, 
	UpdateOptions^ options
)

Type Parameters

TArgument
The type of the t argument.
TKey
The type of the t key.

Parameters

tableName
Type: String
Name of the table.
newValues
Type: TArgument
The new values to use.
keys
Type: IEnumerable<(Of <(<'TKey>)>)>
The keys.
options
Type: Tortuga.Chain..::..UpdateOptions
Update options.

Return Value

MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>.

Exceptions