共用方式為


RelationalDbContextOptionsBuilder<TBuilder,TExtension>.ExecutionStrategy 方法

定義

多載

ExecutionStrategy(Func<ExecutionStrategyContext,IExecutionStrategy>)

設定內容以使用提供的 IExecutionStrategy

ExecutionStrategy(Func<ExecutionStrategyDependencies,IExecutionStrategy>)

設定內容以使用提供的 IExecutionStrategy

ExecutionStrategy(Func<ExecutionStrategyContext,IExecutionStrategy>)

設定內容以使用提供的 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

參數

getExecutionStrategy
Func<ExecutionStrategyContext,IExecutionStrategy>

傳回執行策略新實例的函式。

傳回

TBuilder

適用於

ExecutionStrategy(Func<ExecutionStrategyDependencies,IExecutionStrategy>)

設定內容以使用提供的 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

參數

getExecutionStrategy
Func<ExecutionStrategyDependencies,IExecutionStrategy>

傳回執行策略新實例的函式。

傳回

TBuilder

備註

如需詳細資訊 和範例,請參閱連線復原和資料庫重試

適用於