PostgreSqlDataSourceBase..::..Upsert<(Of <(<'TArgument>)>)> Method (String, TArgument, UpsertOptions)
Perform an insert or update operation as appropriate.
Namespace:
Tortuga.Chain.PostgreSqlAssembly: Tortuga.Chain.PostgreSql (in Tortuga.Chain.PostgreSql.dll)
Syntax
public ObjectDbCommandBuilder<NpgsqlCommand, NpgsqlParameter, TArgument> Upsert<TArgument>( string tableName, TArgument argumentValue, UpsertOptions options )
Public Function Upsert(Of TArgument) ( _ tableName As String, _ argumentValue As TArgument, _ options As UpsertOptions _ ) As ObjectDbCommandBuilder(Of NpgsqlCommand, NpgsqlParameter, TArgument)
public: generic<typename TArgument> ObjectDbCommandBuilder<NpgsqlCommand^, NpgsqlParameter^, 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.