次の方法で共有


DbCommandTreeInterceptionContext.WithDbContext(DbContext) メソッド

定義

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

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

パラメーター

context
DbContext

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

戻り値

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

適用対象