Share via


DbInterceptionContext.ObjectContexts Property

Definition

Gets all the ObjectContext instances associated with this interception context.

public System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Objects.ObjectContext> ObjectContexts { get; }
member this.ObjectContexts : seq<System.Data.Entity.Core.Objects.ObjectContext>
Public ReadOnly Property ObjectContexts As IEnumerable(Of ObjectContext)

Property Value

Remarks

This list usually contains zero or one items. However, it can contain more than one item when EF has created a new ObjectContext for use in database creation and initialization, or if a single EntityConnection is used with multiple ObjectContexts.

Applies to