Condividi tramite


RelationalOptionsExtension.WithExecutionStrategyFactory Metodo

Definizione

Crea una nuova istanza con tutte le opzioni uguali per questa istanza, ma con l'opzione specificata modificata. È insolito chiamare direttamente questo metodo. Usare invece DbContextOptionsBuilder.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension WithExecutionStrategyFactory (Func<Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies,Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy> executionStrategyFactory);
public virtual Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension WithExecutionStrategyFactory (Func<Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies,Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy>? executionStrategyFactory);
abstract member WithExecutionStrategyFactory : Func<Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy> -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension
override this.WithExecutionStrategyFactory : Func<Microsoft.EntityFrameworkCore.Storage.ExecutionStrategyDependencies, Microsoft.EntityFrameworkCore.Storage.IExecutionStrategy> -> Microsoft.EntityFrameworkCore.Infrastructure.RelationalOptionsExtension
Public Overridable Function WithExecutionStrategyFactory (executionStrategyFactory As Func(Of ExecutionStrategyDependencies, IExecutionStrategy)) As RelationalOptionsExtension

Parametri

executionStrategyFactory
Func<ExecutionStrategyDependencies,IExecutionStrategy>

Opzione da modificare.

Restituisce

Nuova istanza con l'opzione modificata.

Si applica a