Sdílet prostřednictvím


EnlistTransactionInterceptionContext.WithObjectContext(ObjectContext) Metoda

Definice

Vytvoří nový EnlistTransactionInterceptionContext , který obsahuje všechny kontextové informace v tomto kontextu zachytávání s přidáním daného ObjectContextobjektu .

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

Parametry

context
ObjectContext

Kontext, který chcete přidružit.

Návraty

Nový kontext zachytávání přidružený k danému kontextu.

Platí pro