DbCommandInterceptionContext.WithCommandBehavior(CommandBehavior) 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.
Creates a new DbCommandInterceptionContext that contains all the contextual information in this interception context together with the given CommandBehavior.
public System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext WithCommandBehavior (System.Data.CommandBehavior commandBehavior);
member this.WithCommandBehavior : System.Data.CommandBehavior -> System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext
Parameters
- commandBehavior
- CommandBehavior
The command behavior to associate.
Returns
A new interception context associated with the given command behavior.
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