Tortuga.Chain Namespace
Tortuga.Chain.Metadata Namespace

PostgreSqlDataSourceBase..::..InsertBatch<(Of <(<'TObject>)>)> Method (PostgreSqlObjectName, IEnumerable<(Of <(<'TObject>)>)>, InsertOptions)

Inserts the batch of records as one operation.

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

Syntax


public MultipleRowDbCommandBuilder InsertBatch<TObject>(
	PostgreSqlObjectName tableName,
	IEnumerable<TObject> objects,
	InsertOptions options
)
Public Function InsertBatch(Of TObject) ( _
	tableName As PostgreSqlObjectName, _
	objects As IEnumerable(Of TObject), _
	options As InsertOptions _
) As MultipleRowDbCommandBuilder
public:
generic<typename TObject>
MultipleRowDbCommandBuilder^ InsertBatch(
	PostgreSqlObjectName^ tableName, 
	IEnumerable<TObject>^ objects, 
	InsertOptions^ options
)

Type Parameters

TObject

Parameters

tableName
Type: Tortuga.Chain.PostgreSql..::..PostgreSqlObjectName
Name of the table.
objects
Type: IEnumerable<(Of <(<'TObject>)>)>
The objects to insert.
options
Type: Tortuga.Chain..::..InsertOptions
The options.

Return Value

MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>.