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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Entity Framework