DbExecutionStrategy Constructor

 

Initializes a new instance of the DbExecutionStrategy class.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_protmethodDbExecutionStrategy()

Initializes a new instance of the DbExecutionStrategy class.

System_CAPS_protmethodDbExecutionStrategy(Int32, TimeSpan)

Initializes a new instance of the DbExecutionStrategy class with the specified limits for number of retries and the delay between retries.


DbExecutionStrategy Constructor ()

Initializes a new instance of the DbExecutionStrategy class.

protected DbExecutionStrategy()

The default retry limit is 5, which means that the total amount of time spent between retries is 26 seconds plus the random factor.


DbExecutionStrategy Constructor (Int32, TimeSpan)

Initializes a new instance of the DbExecutionStrategy class with the specified limits for number of retries and the delay between retries.

protected DbExecutionStrategy(
	int maxRetryCount,
	TimeSpan maxDelay
)

Parameters

maxRetryCount
Type: System.Int32

The maximum number of retry attempts.

maxDelay
Type: System.TimeSpan

The maximum delay in milliseconds between retries.