DbExecutionStrategy Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DbExecutionStrategy() |
Creates a new instance of DbExecutionStrategy. |
DbExecutionStrategy(Int32, TimeSpan) |
Creates a new instance of DbExecutionStrategy with the specified limits for number of retries and the delay between retries. |
DbExecutionStrategy()
Creates a new instance of DbExecutionStrategy.
protected DbExecutionStrategy ();
Protected Sub New ()
Remarks
The default retry limit is 5, which means that the total amount of time spent between retries is 26 seconds plus the random factor.
Applies to
DbExecutionStrategy(Int32, TimeSpan)
Creates a new instance of DbExecutionStrategy with the specified limits for number of retries and the delay between retries.
protected DbExecutionStrategy (int maxRetryCount, TimeSpan maxDelay);
new System.Data.Entity.Infrastructure.DbExecutionStrategy : int * TimeSpan -> System.Data.Entity.Infrastructure.DbExecutionStrategy
Protected Sub New (maxRetryCount As Integer, maxDelay As TimeSpan)
Parameters
- maxRetryCount
- Int32
The maximum number of retry attempts.
- maxDelay
- TimeSpan
The maximum delay in milliseconds between retries.
Applies to
Entity Framework