RelationalDbContextOptionsBuilder<TBuilder,TExtension>.ExecutionStrategy 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
備註
如需詳細資訊 和範例,請參閱連線復原和資料庫重試 。