DbInterceptionContext.ObjectContexts 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 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
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