Aracılığıyla paylaş


RelationalOptionsExtension.WithExecutionStrategyFactory Yöntem

Tanım

Tüm seçenekleri bu örnekle aynı olan ancak verilen seçeneğin değiştirildiği yeni bir örnek oluşturur. Bu yöntemi doğrudan çağırmak olağan dışıdır. Bunun yerine kullanın 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

Parametreler

executionStrategyFactory
Func<ExecutionStrategyDependencies,IExecutionStrategy>

Değiştirme seçeneği.

Döndürülenler

Seçeneği değiştirilmiş yeni bir örnek.

Şunlara uygulanır