Entity Framework Extensions RetryInterval

Description

Gets or sets the interval to wait before retrying an operation when a transient error occurs.

context.BulkSaveChanges(options => {
	options.RetryCount = 3;
	options.RetryInterval = new TimeSpan(100);
});

Purpose

A transient error is a temporary error that is likely to disappear soon. That rarely happens but they might occur!

These options allow to reduce a bulk operation fail by making them retry when a transient error occurs.

FAQ

What are transient errors?

You can find a list of transient errors here: Transient fault error codes

Which includes the most common errors such as:

  • Cannot open database
  • The service is currently busy
  • Database is not currently available
  • Not enough resources to process request

Last updated: 2023-03-01
Author:


Contents