Skip to content

v3.11.17

Choose a tag to compare

@JonathanMagnan JonathanMagnan released this 19 Apr 13:36
· 923 commits to master since this release

Download the library here

ADDED: PostConfiguration event
ADDED: EntityType property

PostConfiguration

Raised when all configurations have been set (Column Mapping, Destination, BatchSize).

EntityType

Gets the entity type used in the bulk operations.

Example

In this example, we will force to insert a value into a column that's normally computed (value generated from the database) by adding the column to the mapping list.

dbContext.BulkInsert(list, operation => operation.PostConfiguration = bulkOperation =>
{
    if (bulkOperation.EntityType == typeof(BankAccount))
    {
        bulkOperation.ColumnMappings.Add("CreatedDate");
    }
});

PRO Version unlocked for the current month (April)