Entity Framework Extensions Transient Error

RetryCount

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

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

Try it in EF6 | Try it in EF Core

RetryInterval

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);
});

Try it in EF6 | Try it in EF Core

Contents

Related