BulkOperations
Class BulkOperations
Base class that is used for creating ETLBox bulk operations.
Inheritance
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
Type | Name | Description |
---|---|---|
DbContext | context | |
ETLBox.IConnectionManager | connectionManager |
BulkOperations(DbContext)
Declaration
public BulkOperations(DbContext context)
Parameters
Type | Name | Description |
---|---|---|
DbContext | context |
Properties
ConnectionManager
An ETLBox ETLBox.IConnectionManager used to wrap the current ADO.NET connection manager.
Declaration
public IConnectionManager ConnectionManager { get; set; }
Property Value
Type | Description |
---|---|
ETLBox.IConnectionManager |
DbConnectionManager
Declaration
protected virtual IConnectionManager DbConnectionManager { get; }
Property Value
Type | Description |
---|---|
ETLBox.IConnectionManager |
DbContext
Your current DbContext.
Declaration
public DbContext DbContext { get; set; }
Property Value
Type | Description |
---|---|
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
Type | Name | Description |
---|---|---|
IEnumerable<><T> | newRecords | List containing the records for deletion |
Action<><BulkOptions<T>> | options | Configurable options for the bulk operation |
Type Parameters
Name | Description |
---|---|
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
Type | Name | Description |
---|---|---|
IEnumerable<><T> | newRecords | List containing the records for deletion |
Type Parameters
Name | Description |
---|---|
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
Type | Name | Description |
---|---|---|
IEnumerable<><T> | newRecords | List containing the records for insertion |
Action<><BulkOptions<T>> | options | Configurable options for the bulk operation |
Type Parameters
Name | Description |
---|---|
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
Type | Name | Description |
---|---|---|
IEnumerable<><T> | newRecords | List containing the records for insertion |
Type Parameters
Name | Description |
---|---|
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
Type | Name | Description |
---|---|---|
IEnumerable<><T> | newRecords | List containing the records for syncing |
Action<><MergeBulkOptions<T>> | options | Configurable options for the bulk operation |
Type Parameters
Name | Description |
---|---|
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
Type | Name | Description |
---|---|---|
IEnumerable<><T> | newRecords | List containing the records for syncing |
Type Parameters
Name | Description |
---|---|
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
Type | Name | Description |
---|---|---|
IEnumerable<><T> | newRecords | List containing the records for updating |
Action<><BulkOptions<T>> | options | Configurable options for the bulk operation |
Type Parameters
Name | Description |
---|---|
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
Type | Name | Description |
---|---|---|
IEnumerable<><T> | newRecords | List containing the records for updating |
Type Parameters
Name | Description |
---|---|
T | Data type used for the bulk operation |