Share via


DbInterceptionContext.DbContexts Property

Definition

Gets all the DbContext instances associated with this interception context.

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

Property Value

Remarks

This list usually contains zero or one items. However, it can contain more than one item if a single ObjectContext has been used to construct multiple DbContext instances.

Applies to