Bagikan melalui


RelationalDbContextOptionsBuilder<TBuilder,TExtension>.ExecutionStrategy Metode

Definisi

Overload

ExecutionStrategy(Func<ExecutionStrategyContext,IExecutionStrategy>)

Mengonfigurasi konteks untuk menggunakan yang disediakan IExecutionStrategy.

ExecutionStrategy(Func<ExecutionStrategyDependencies,IExecutionStrategy>)

Mengonfigurasi konteks untuk menggunakan yang disediakan IExecutionStrategy.

ExecutionStrategy(Func<ExecutionStrategyContext,IExecutionStrategy>)

Mengonfigurasi konteks untuk menggunakan yang disediakan 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

Parameter

getExecutionStrategy
Func<ExecutionStrategyContext,IExecutionStrategy>

Fungsi yang mengembalikan instans baru dari strategi eksekusi.

Mengembalikan

TBuilder

Berlaku untuk

ExecutionStrategy(Func<ExecutionStrategyDependencies,IExecutionStrategy>)

Mengonfigurasi konteks untuk menggunakan yang disediakan 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

Parameter

getExecutionStrategy
Func<ExecutionStrategyDependencies,IExecutionStrategy>

Fungsi yang mengembalikan instans baru dari strategi eksekusi.

Mengembalikan

TBuilder

Keterangan

Lihat Ketahanan koneksi dan percobaan ulang database untuk informasi dan contoh selengkapnya.

Berlaku untuk