Entity Framework Extensions – Execute Event

BulkOperationExecuting

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

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

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