DbCommandTreeInterceptionContext.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 override System.Data.Entity.Infrastructure.Interception.DbInterceptionContext Clone ();
override this.Clone : unit -> System.Data.Entity.Infrastructure.Interception.DbInterceptionContext
Protected Overrides Function Clone () As DbInterceptionContext
Returns
A new context with all state copied.
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