Compartir a través de


RelationalDbContextOptionsBuilder<TBuilder,TExtension>.ExecutionStrategy Método

Definición

Sobrecargas

ExecutionStrategy(Func<ExecutionStrategyContext,IExecutionStrategy>)

Configura el contexto para usar el proporcionado IExecutionStrategy.

ExecutionStrategy(Func<ExecutionStrategyDependencies,IExecutionStrategy>)

Configura el contexto para usar el proporcionado IExecutionStrategy.

ExecutionStrategy(Func<ExecutionStrategyContext,IExecutionStrategy>)

Configura el contexto para usar el proporcionado IExecutionStrategy.

public virtual TBuilder ExecutionStrategy (Func<Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyContext,Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy> getExecutionStrategy);
abstract member ExecutionStrategy : Func<Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyContext, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy> -> 'Builder
override this.ExecutionStrategy : Func<Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyContext, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy> -> 'Builder
Public Overridable Function ExecutionStrategy (getExecutionStrategy As Func(Of ExecutionStrategyContext, IExecutionStrategy)) As TBuilder

Parámetros

getExecutionStrategy
Func<ExecutionStrategyContext,IExecutionStrategy>

Función que devuelve una nueva instancia de una estrategia de ejecución.

Devoluciones

TBuilder

Se aplica a

ExecutionStrategy(Func<ExecutionStrategyDependencies,IExecutionStrategy>)

Configura el contexto para usar el proporcionado IExecutionStrategy.

public virtual TBuilder ExecutionStrategy (Func<Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies,Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy> getExecutionStrategy);
abstract member ExecutionStrategy : Func<Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy> -> 'Builder
override this.ExecutionStrategy : Func<Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy> -> 'Builder
Public Overridable Function ExecutionStrategy (getExecutionStrategy As Func(Of ExecutionStrategyDependencies, IExecutionStrategy)) As TBuilder

Parámetros

getExecutionStrategy
Func<ExecutionStrategyDependencies,IExecutionStrategy>

Función que devuelve una nueva instancia de una estrategia de ejecución.

Devoluciones

TBuilder

Comentarios

Consulte Resistencia de conexión y reintentos de base de datos para obtener más información y ejemplos.

Se aplica a