DbCommandTreeInterceptionContext.WithDbContext(DbContext) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立新的 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
要關聯的內容。
傳回
與指定內容相關聯的新攔截內容。