bulk-operation-executed

Definition

Gets or sets an action to execute after the bulk operation is executed.

Example

context.BulkSaveChanges(options => {
	options.BulkOperationExecuted = bulkOperation => { /* configuration */ };
});

Purpose

For some options such as Audit, values must be taken directly from the Bulk Operations after it’s executed. This event allows you to take this kind of information.

Example

List<AuditEntry> auditEntries = new List<AuditEntry>();

context.BulkSaveChanges(list, options =>
{
	options.UseAudit = true;
	options.BulkOperationExecuted = bulkOperation => auditEntries.AddRange(bulkOperation.AuditEntries);
});