Entity Framework Extensions - Execute Event

Excecute Event Options

BulkOperationExecuting

Allow you to change configuration before the bulk operation is executed.

Example

Example

using (var ctx = new EntitiesContext())
{
    ctx.BulkSaveChanges(operation =>
    {
        operation.BulkOperationExecuting = bulkOperation => { /* configuration */ };
    });
}

BulkOperationExecuted

Allow you to change configuration after the bulk operation is executed.

Example

Example

using (var ctx = new EntitiesContext())
{
    ctx.BulkSaveChanges(operation =>
    {
        operation.BulkOperationExecuted = bulkOperation =>  { /* configuration */ };
    });
}