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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework