DbCommandInterceptionContext.WithObjectContext(ObjectContext) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 DbCommandInterceptionContext 一個新 ,包含此攔截上下文中所有上下文資訊,並加上給定 ObjectContext的 。
public System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext WithObjectContext(System.Data.Entity.Core.Objects.ObjectContext context);
override this.WithObjectContext : System.Data.Entity.Core.Objects.ObjectContext -> System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext
Public Function WithObjectContext (context As ObjectContext) As DbCommandInterceptionContext
參數
- context
- ObjectContext
要有關聯的情境。
傳回
一個與該上下文相關的新攔截上下文。