Tortuga.Chain Namespace
Tortuga.Chain.Metadata Namespace

MySqlDataSourceBase..::..InsertMultipleBatch<(Of <(<'TObject>)>)> Method (MySqlObjectName, IEnumerable<(Of <(<'TObject>)>)>, InsertOptions)

Performs a series of batch inserts.

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

Syntax


public ILink<int> InsertMultipleBatch<TObject>(
	MySqlObjectName tableName,
	IEnumerable<TObject> objects,
	InsertOptions options
)
Public Function InsertMultipleBatch(Of TObject) ( _
	tableName As MySqlObjectName, _
	objects As IEnumerable(Of TObject), _
	options As InsertOptions _
) As ILink(Of Integer)
public:
generic<typename TObject>
ILink<int^>^ InsertMultipleBatch(
	MySqlObjectName^ tableName, 
	IEnumerable<TObject>^ objects, 
	InsertOptions^ options
)

Type Parameters

TObject
The type of the t object.

Parameters

tableName
Type: Tortuga.Chain.MySql..::..MySqlObjectName
Name of the table.
objects
Type: IEnumerable<(Of <(<'TObject>)>)>
The objects.
options
Type: Tortuga.Chain..::..InsertOptions
The options.

Return Value

Tortuga.Chain.ILink<System.Int32>.

Remarks


This operation is not atomic. It should be wrapped in a transaction.