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

ISupportsUpsert..::..Upsert<(Of <(<'TArgument>)>)> Method (String, TArgument, UpsertOptions)

Perform an insert or update operation as appropriate.

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

Syntax


IObjectDbCommandBuilder<TArgument> Upsert<TArgument>(
	string tableName,
	TArgument argumentValue,
	UpsertOptions options
)
Function Upsert(Of TArgument) ( _
	tableName As String, _
	argumentValue As TArgument, _
	options As UpsertOptions _
) As IObjectDbCommandBuilder(Of TArgument)
generic<typename TArgument>
IObjectDbCommandBuilder<TArgument>^ Upsert(
	String^ tableName, 
	TArgument argumentValue, 
	UpsertOptions^ options
)

Type Parameters

TArgument

Parameters

tableName
Type: String
Name of the table.
argumentValue
Type: TArgument
The argument value.
options
Type: Tortuga.Chain..::..UpsertOptions
The options for how the insert/update occurs.

Exceptions


ExceptionCondition
[ArgumentException]tableName is empty.;tableName