LinqToSql Plus RetryCount
Description
Gets or sets the maximum number of operations retry when a transient error occurs.
context.BulkSaveChanges(options => {
options.RetryCount = 3;
});
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 operations fail by making them retry when a transient error occurs.
FAQ
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