Share via


RelationalOptionsExtension.WithExecutionStrategyFactory Method

Definition

Creates a new instance with all options the same as for this instance, but with the given option changed. It is unusual to call this method directly. Instead use 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

Parameters

executionStrategyFactory
Func<ExecutionStrategyDependencies,IExecutionStrategy>

The option to change.

Returns

A new instance with the option changed.

Applies to