MutableInterceptionContext.WithObjectContext(ObjectContext) 方法

定义

创建一个新的 MutableInterceptionContext ,其中包含此拦截上下文中的所有上下文信息,并添加给定 ObjectContext的 。

public System.Data.Entity.Infrastructure.Interception.MutableInterceptionContext WithObjectContext (System.Data.Entity.Core.Objects.ObjectContext context);
override this.WithObjectContext : System.Data.Entity.Core.Objects.ObjectContext -> System.Data.Entity.Infrastructure.Interception.MutableInterceptionContext
Public Function WithObjectContext (context As ObjectContext) As MutableInterceptionContext

参数

context
ObjectContext

要关联的上下文。

返回

与给定上下文关联的新拦截上下文。

适用于