DbInterceptionContext.Clone Method
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.
Call this method when creating a copy of an interception context in order to add new state to it. Using this method instead of calling the constructor directly ensures virtual dispatch so that the new type will have the same type (and any specialized state) as the context that is being cloned.
protected virtual System.Data.Entity.Infrastructure.Interception.DbInterceptionContext Clone ();
abstract member Clone : unit -> System.Data.Entity.Infrastructure.Interception.DbInterceptionContext
override this.Clone : unit -> System.Data.Entity.Infrastructure.Interception.DbInterceptionContext
Protected Overridable Function Clone () As DbInterceptionContext
Returns
A new context with all state copied.
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