Entity Framework Extensions – Transient Error

Transient Error Options

RetryCount

Allow you to set how many time the bulk operation should retry the operation when a transient error occurs.

Example

using (var ctx = new EntitiesContext())
{
ctx.BulkSaveChanges(operation =>
{
operation.RetryCount = 3;
});
}

RetryInterval

Allow you to set how many time to wait before trying an operation again when a transient error occurs.

Example

using (var ctx = new EntitiesContext())
{
ctx.BulkSaveChanges(operation =>
{
operation.RetryCount = 3;
operation.RetryInterval = new TimeSpan(100);
});
}