SqlServerDataSourceBase..::..InsertBatch<(Of <(<'TObject>)>)> Method (SqlServerObjectName, IEnumerable<(Of <(<'TObject>)>)>, SqlServerObjectName, InsertOptions)
Inserts the batch of records as one operation.
Namespace:
Tortuga.Chain.SqlServerAssembly: Tortuga.Chain.SqlServer.MDS (in Tortuga.Chain.SqlServer.MDS.dll)
Syntax
[SuppressMessageAttribute] public MultipleRowDbCommandBuilder<SqlCommand, SqlParameter> InsertBatch<TObject>( SqlServerObjectName tableName, IEnumerable<TObject> objects, SqlServerObjectName tableTypeName, InsertOptions options )
<SuppressMessageAttribute> _ Public Function InsertBatch(Of TObject) ( _ tableName As SqlServerObjectName, _ objects As IEnumerable(Of TObject), _ tableTypeName As SqlServerObjectName, _ options As InsertOptions _ ) As MultipleRowDbCommandBuilder(Of SqlCommand, SqlParameter)
[SuppressMessageAttribute] public: generic<typename TObject> MultipleRowDbCommandBuilder<SqlCommand^, SqlParameter^>^ InsertBatch( SqlServerObjectName^ tableName, IEnumerable<TObject>^ objects, SqlServerObjectName^ tableTypeName, InsertOptions^ options )
Type Parameters
- TObject
Parameters
- tableName
- Type: Tortuga.Chain.SqlServer..::..SqlServerObjectName
Name of the table.
- 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.