DbExecutionStrategy Constructor
Initializes a new instance of the DbExecutionStrategy class.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | DbExecutionStrategy() | Initializes a new instance of the DbExecutionStrategy class. |
![]() | DbExecutionStrategy(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.
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.
Parameters
- maxRetryCount
-
Type:
System.Int32
The maximum number of retry attempts.
- maxDelay
-
Type:
System.TimeSpan
The maximum delay in milliseconds between retries.