BulkOperations

Class BulkOperations

Base class that is used for creating ETLBox bulk operations.

Inheritance
BulkOperations
Namespace: ETLBox.DbExtensions
Assembly: ETLBox.DbExtensions.dll
Syntax
    public class BulkOperations

Constructors

BulkOperations()

Declaration
    public BulkOperations()

BulkOperations(IConnectionManager)

Declaration
    public BulkOperations(IConnectionManager connectionManager)
Parameters
TypeNameDescription
IConnectionManagerconnectionManager

Properties

ConnectionManager

An ETLBox IConnectionManager used to wrap the current ADO.NET connection manager.

Declaration
    public IConnectionManager ConnectionManager { get; set; }
Property Value
TypeDescription
IConnectionManager

Methods

BulkDelete<T>(IEnumerable<T>)

Let you delete a large number of records in your database by utilizing bulk delete sql.

Declaration
    public void BulkDelete<T>(IEnumerable<T> newRecords)
Parameters
TypeNameDescription
IEnumerable<T>newRecords

List containing the records for deletion.

Type Parameters
NameDescription
T

Data type used for the bulk operation.

BulkDelete<T>(IEnumerable<T>, Action<BulkOptions<T>>)

Let you delete a large number of records in your database by utilizing bulk delete sql.

Declaration
    public void BulkDelete<T>(IEnumerable<T> newRecords, Action<BulkOptions<T>> options)
Parameters
TypeNameDescription
IEnumerable<T>newRecords

List containing the records for deletion.

Action<BulkOptions<T>>options

Configurable options for the bulk operation.

Type Parameters
NameDescription
T

Data type used for the bulk operation.

BulkInsert<T>(IEnumerable<T>)

Let you insert a large number of records in your database by utilizing bulk insert sql.

Declaration
    public void BulkInsert<T>(IEnumerable<T> newRecords)
Parameters
TypeNameDescription
IEnumerable<T>newRecords

List containing the records for insertion.

Type Parameters
NameDescription
T

Data type used for the bulk operation.

BulkInsert<T>(IEnumerable<T>, Action<BulkOptions<T>>)

Let you insert a large number of records in your database by utilizing bulk insert sql.

Declaration
    public void BulkInsert<T>(IEnumerable<T> newRecords, Action<BulkOptions<T>> options)
Parameters
TypeNameDescription
IEnumerable<T>newRecords

List containing the records for insertion.

Action<BulkOptions<T>>options

Configurable options for the bulk operation.

Type Parameters
NameDescription
T

Data type used for the bulk operation.

BulkMerge<T>(IEnumerable<T>)

Let you merge a large number of records in your database by utilizing bulk sql.

Declaration
    public void BulkMerge<T>(IEnumerable<T> newRecords)
Parameters
TypeNameDescription
IEnumerable<T>newRecords

List containing the records for syncing.

Type Parameters
NameDescription
T

Data type used for the bulk operation.

BulkMerge<T>(IEnumerable<T>, Action<MergeBulkOptions<T>>)

Let you merge a large number of records in your database by utilizing bulk sql.

Declaration
    public void BulkMerge<T>(IEnumerable<T> newRecords, Action<MergeBulkOptions<T>> options)
Parameters
TypeNameDescription
IEnumerable<T>newRecords

List containing the records for syncing.

Action<MergeBulkOptions<T>>options

Configurable options for the bulk operation.

Type Parameters
NameDescription
T

Data type used for the bulk operation.

BulkUpdate<T>(IEnumerable<T>)

Let you update a large number of records in your database by utilizing bulk update sql.

Declaration
    public void BulkUpdate<T>(IEnumerable<T> newRecords)
Parameters
TypeNameDescription
IEnumerable<T>newRecords

List containing the records for updating.

Type Parameters
NameDescription
T

Data type used for the bulk operation.

BulkUpdate<T>(IEnumerable<T>, Action<BulkOptions<T>>)

Let you update a large number of records in your database by utilizing bulk update sql.

Declaration
    public void BulkUpdate<T>(IEnumerable<T> newRecords, Action<BulkOptions<T>> options)
Parameters
TypeNameDescription
IEnumerable<T>newRecords

List containing the records for updating.

Action<BulkOptions<T>>options

Configurable options for the bulk operation.

Type Parameters
NameDescription
T

Data type used for the bulk operation.