Language

DbCommandInterceptionContext.WithDbContext(DbContext) メソッド

定義

指定したObjectContextを追加して、このインターセプト コンテキスト内のすべてのコンテキスト情報を含む新しいDbCommandInterceptionContextを作成します。

public System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext WithDbContext(System.Data.Entity.DbContext context);
override this.WithDbContext : System.Data.Entity.DbContext -> System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext
Public Function WithDbContext (context As DbContext) As DbCommandInterceptionContext

パラメーター

context
DbContext

関連付けるコンテキスト。

戻り値

指定されたコンテキストに関連付けられた新しいインターセプト コンテキスト。

適用対象