Partilhar via


RelationalDbContextOptionsBuilder<TBuilder,TExtension>.ExecutionStrategy Método

Definição

Sobrecargas

ExecutionStrategy(Func<ExecutionStrategyContext,IExecutionStrategy>)

Configura o contexto para usar o fornecido IExecutionStrategy.

ExecutionStrategy(Func<ExecutionStrategyDependencies,IExecutionStrategy>)

Configura o contexto para usar o fornecido IExecutionStrategy.

ExecutionStrategy(Func<ExecutionStrategyContext,IExecutionStrategy>)

Configura o contexto para usar o fornecido 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>

Uma função que retorna uma nova instância de uma estratégia de execução.

Retornos

TBuilder

Aplica-se a

ExecutionStrategy(Func<ExecutionStrategyDependencies,IExecutionStrategy>)

Origem:
RelationalDbContextOptionsBuilder.cs
Origem:
RelationalDbContextOptionsBuilder.cs
Origem:
RelationalDbContextOptionsBuilder.cs
Origem:
RelationalDbContextOptionsBuilder.cs
Origem:
RelationalDbContextOptionsBuilder.cs
Origem:
RelationalDbContextOptionsBuilder.cs
Origem:
RelationalDbContextOptionsBuilder.cs
Origem:
RelationalDbContextOptionsBuilder.cs
Origem:
RelationalDbContextOptionsBuilder.cs

Configura o contexto para usar o fornecido 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>

Uma função que retorna uma nova instância de uma estratégia de execução.

Retornos

TBuilder

Comentários

Consulte Resiliência de conexão e repetições de banco de dados para obter mais informações e exemplos.

Aplica-se a