Condividi tramite


RelationalDbContextOptionsBuilder<TBuilder,TExtension>.ExecutionStrategy Metodo

Definizione

Overload

ExecutionStrategy(Func<ExecutionStrategyContext,IExecutionStrategy>)

Configura il contesto per l'uso dell'oggetto specificato IExecutionStrategy.

ExecutionStrategy(Func<ExecutionStrategyDependencies,IExecutionStrategy>)

Configura il contesto per l'uso dell'oggetto specificato IExecutionStrategy.

ExecutionStrategy(Func<ExecutionStrategyContext,IExecutionStrategy>)

Configura il contesto per l'uso dell'oggetto specificato 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

Parametri

getExecutionStrategy
Func<ExecutionStrategyContext,IExecutionStrategy>

Funzione che restituisce una nuova istanza di una strategia di esecuzione.

Restituisce

TBuilder

Si applica a

ExecutionStrategy(Func<ExecutionStrategyDependencies,IExecutionStrategy>)

Origine:
RelationalDbContextOptionsBuilder.cs
Origine:
RelationalDbContextOptionsBuilder.cs
Origine:
RelationalDbContextOptionsBuilder.cs
Origine:
RelationalDbContextOptionsBuilder.cs
Origine:
RelationalDbContextOptionsBuilder.cs
Origine:
RelationalDbContextOptionsBuilder.cs
Origine:
RelationalDbContextOptionsBuilder.cs
Origine:
RelationalDbContextOptionsBuilder.cs
Origine:
RelationalDbContextOptionsBuilder.cs

Configura il contesto per l'uso dell'oggetto specificato 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

Parametri

getExecutionStrategy
Func<ExecutionStrategyDependencies,IExecutionStrategy>

Funzione che restituisce una nuova istanza di una strategia di esecuzione.

Restituisce

TBuilder

Commenti

Per altre informazioni ed esempi, vedere Resilienza delle connessioni e tentativi di database .

Si applica a