Partager via


RelationalDbContextOptionsBuilder<TBuilder,TExtension>.ExecutionStrategy Méthode

Définition

Surcharges

ExecutionStrategy(Func<ExecutionStrategyContext,IExecutionStrategy>)

Configure le contexte pour utiliser le fourni IExecutionStrategy.

ExecutionStrategy(Func<ExecutionStrategyDependencies,IExecutionStrategy>)

Configure le contexte pour utiliser le fourni IExecutionStrategy.

ExecutionStrategy(Func<ExecutionStrategyContext,IExecutionStrategy>)

Configure le contexte pour utiliser le fourni 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

Paramètres

getExecutionStrategy
Func<ExecutionStrategyContext,IExecutionStrategy>

Fonction qui retourne une nouvelle instance d’une stratégie d’exécution.

Retours

TBuilder

S’applique à

ExecutionStrategy(Func<ExecutionStrategyDependencies,IExecutionStrategy>)

Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs
Source:
RelationalDbContextOptionsBuilder.cs

Configure le contexte pour utiliser le fourni 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

Paramètres

getExecutionStrategy
Func<ExecutionStrategyDependencies,IExecutionStrategy>

Fonction qui retourne une nouvelle instance d’une stratégie d’exécution.

Retours

TBuilder

Remarques

Pour plus d’informations et d’exemples, consultez Résilience des connexions et nouvelles tentatives de base de données .

S’applique à