BulkOperations

Class BulkOperations

Base class that is used for creating ETLBox bulk operations.

Inheritance
System.Object
BulkOperations
Namespace: EFBox
Assembly: EFBox.dll
Syntax
    public class BulkOperations

Constructors

BulkOperations()

Declaration
    public BulkOperations()

BulkOperations(DbContext, IConnectionManager)

Declaration
    public BulkOperations(DbContext context, IConnectionManager connectionManager)
Parameters
TypeNameDescription
DbContextcontext
ETLBox.IConnectionManagerconnectionManager

BulkOperations(DbContext)

Declaration
    public BulkOperations(DbContext context)
Parameters
TypeNameDescription
DbContextcontext

Properties

ConnectionManager

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

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

DbConnectionManager

Declaration
    protected virtual IConnectionManager DbConnectionManager { get; }
Property Value
TypeDescription
ETLBox.IConnectionManager

DbContext

Your current DbContext.

Declaration
    public DbContext DbContext { get; set; }
Property Value
TypeDescription
DbContext

Methods

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

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

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

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

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

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

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

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