DbInterceptionContext.DbContexts Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework