Entity Framework Extensions RetryCount


Gets or sets the maximum number of operations retry when a transient error occurs.

context.BulkSaveChanges(options => {
	options.RetryCount = 3;


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.


What are transient error codes supported?

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