SqlServerExecutionStrategy SqlServerExecutionStrategy Class

Syntax

Declaration

public class SqlServerExecutionStrategy : IExecutionStrategyPublic Class SqlServerExecutionStrategy
    Implements IExecutionStrategy

Inheritance Hierarchy

  • System.Object
    System.Object
  • SqlServerExecutionStrategy
    SqlServerExecutionStrategy

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Properties summary

Methods summary

Properties

  • Instance
    Instance
    public static SqlServerExecutionStrategy Instance { get; }Public Shared ReadOnly Property Instance As SqlServerExecutionStrategy

    Property Value

  • RetriesOnFailure
    RetriesOnFailure
    public virtual bool RetriesOnFailure { get; }Public Overridable ReadOnly Property RetriesOnFailure As Boolean

    Property Value

    • System.Boolean
      System.Boolean

Methods

  • Execute<TState, TResult>(Func<TState, TResult>, TState)
    Execute(Of TState, TResult)(Func(Of TState, TResult), TState)
    public virtual TResult Execute<TState, TResult>(Func<TState, TResult> operation, TState state)Public Overridable Function Execute(Of TState, TResult)(operation As Func(Of TState, TResult), state As TState) As TResult

    Parameters

    • operation
      System.Func<T, TResult><TState, TResult>
      System.Func<T, TResult>(Of TState, TResult)
    • state
      TState
      TState

    Returns

    • TResult
      TResult
  • ExecuteAsync<TState, TResult>(Func<TState, CancellationToken, Task<TResult>>, TState, CancellationToken)
    ExecuteAsync(Of TState, TResult)(Func(Of TState, CancellationToken, Task(Of TResult)), TState, CancellationToken)
    public virtual Task<TResult> ExecuteAsync<TState, TResult>(Func<TState, CancellationToken, Task<TResult>> operation, TState state, CancellationToken cancellationToken)Public Overridable Function ExecuteAsync(Of TState, TResult)(operation As Func(Of TState, CancellationToken, Task(Of TResult)), state As TState, cancellationToken As CancellationToken) As Task(Of TResult)

    Parameters

    • operation
      System.Func<T1, T2, TResult><TState, System.Threading.CancellationToken, System.Threading.Tasks.Task<TResult><TResult>>
      System.Func<T1, T2, TResult>(Of TState, System.Threading.CancellationToken, System.Threading.Tasks.Task<TResult>(Of TResult))
    • state
      TState
      TState
    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task<TResult><TResult>
      System.Threading.Tasks.Task<TResult>(Of TResult)

Details

Assembly

Microsoft.EntityFrameworkCore.SqlServer.dll