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

SqlServerDataSourceBase..::..InsertBatch<(Of <(<'TObject>)>)> Method (IEnumerable<(Of <(<'TObject>)>)>, SqlServerObjectName, InsertOptions)

Inserts the batch of records as one operation..

Namespace:  Tortuga.Chain.SqlServer
Assembly:  Tortuga.Chain.SqlServer.MDS (in Tortuga.Chain.SqlServer.MDS.dll)

Syntax


public MultipleRowDbCommandBuilder<SqlCommand, SqlParameter> InsertBatch<TObject>(
	IEnumerable<TObject> objects,
	SqlServerObjectName tableTypeName,
	InsertOptions options
)
Public Function InsertBatch(Of TObject) ( _
	objects As IEnumerable(Of TObject), _
	tableTypeName As SqlServerObjectName, _
	options As InsertOptions _
) As MultipleRowDbCommandBuilder(Of SqlCommand, SqlParameter)
public:
generic<typename TObject>
MultipleRowDbCommandBuilder<SqlCommand^, SqlParameter^>^ InsertBatch(
	IEnumerable<TObject>^ objects, 
	SqlServerObjectName^ tableTypeName, 
	InsertOptions^ options
)

Type Parameters

TObject
The type of the object.

Parameters

objects
Type: IEnumerable<(Of <(<'TObject>)>)>
The objects.
tableTypeName
Type: Tortuga.Chain.SqlServer..::..SqlServerObjectName
Name of the table type.
options
Type: Tortuga.Chain..::..InsertOptions
The options.

Return Value

MultipleRowDbCommandBuilder<SqlCommand, SqlParameter>.