BulkOptionsShared<T>

Class BulkOptionsShared<T>

Inheritance
System.Object
BulkOptionsShared<T>
Namespace: EFBox
Assembly: EFBox.dll
Syntax
    public abstract class BulkOptionsShared<T>
Type Parameters
NameDescription
T

Properties

AllowIdentityInsert

Enables identity insert for the operation - this will override existing values in identity / auto-increment / serial columns.

Declaration
    public bool AllowIdentityInsert { get; set; }
Property Value
TypeDescription
bool

BatchSize

The number of records to be processed in a single batch.

Declaration
    public int BatchSize { get; set; }
Property Value
TypeDescription
int

ColumnConverters

Allows custom conversions for specific columns.

Declaration
    public ICollection<ColumnConverter> ColumnConverters { get; set; }
Property Value
TypeDescription
ICollection<><ColumnConverter>

ErrorData

Contains erroneous data. RedirectErroneousBatches must be set to true.

Declaration
    public ICollection<ETLBoxError> ErrorData { get; set; }
Property Value
TypeDescription
ICollection<><ETLBoxError>

OnProgress

Action is invoked for every processed batch.

Declaration
    public Action<int> OnProgress { get; set; }
Property Value
TypeDescription
Action<><int>

ReadGeneratedValues

Indicates whether to read back generated values like auto-incremented IDs.

Declaration
    public bool ReadGeneratedValues { get; set; }
Property Value
TypeDescription
bool

RedirectErroneousBatches

Indicates whether to redirect erroneous batches.
By default an exception is thrown when a batch can't be inserted into a database, and the bulk operation is stopped. Setting this to true won't stop execution when a batch can't be processed. ErrorData will hold details about flawed batch.

Declaration
    public bool RedirectErroneousBatches { get; set; }
Property Value
TypeDescription
bool