RelationalDbContextOptionsBuilder<TBuilder,TExtension>.ExecutionStrategy Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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
Si applica a
ExecutionStrategy(Func<ExecutionStrategyDependencies,IExecutionStrategy>)
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
Commenti
Per altre informazioni ed esempi, vedere Resilienza delle connessioni e tentativi di database .