Language

CoreOptionsExtension.WithAsyncSeeding メソッド

定義

このインスタンスの場合と同じすべてのオプションを持つ新しいインスタンスを作成しますが、指定されたオプションは変更されます。 このメソッドを直接呼び出すのは普通ではありません。 代わりに DbContextOptionsBuilder を使用します。

public virtual Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension WithAsyncSeeding(Func<Microsoft.EntityFrameworkCore.DbContext,bool,System.Threading.CancellationToken,System.Threading.Tasks.Task> seedAsync);
abstract member WithAsyncSeeding : Func<Microsoft.EntityFrameworkCore.DbContext, bool, System.Threading.CancellationToken, System.Threading.Tasks.Task> -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
override this.WithAsyncSeeding : Func<Microsoft.EntityFrameworkCore.DbContext, bool, System.Threading.CancellationToken, System.Threading.Tasks.Task> -> Microsoft.EntityFrameworkCore.Infrastructure.CoreOptionsExtension
Public Overridable Function WithAsyncSeeding (seedAsync As Func(Of DbContext, Boolean, CancellationToken, Task)) As CoreOptionsExtension

パラメーター

seedAsync
Func<DbContext,Boolean,CancellationToken,Task>

変更するオプション。

戻り値

オプションが変更された新しいインスタンス。

適用対象