src/Shared/EntityFramework/Infrastructure/Interception/DbCommandInterceptionContext.cs
/// <summary>
/// Creates a new <see cref="DbCommandInterceptionContext" /> that contains all the contextual information in this
/// interception context together with the given <see cref="CommandBehavior" />.
/// </summary>
/// <param name="commandBehavior">The command behavior to associate.</param>
/// <returns>A new interception context associated with the given command behavior.</returns>
Creates a new  that contains all the contextual information in this
interception context together with the given .
Creates a new that contains all the contextual information in this interception context together with the given .
public DbCommandInterceptionContext WithCommandBehavior(CommandBehavior commandBehavior)
        {
            var copy = TypedClone();
            copy._commandBehavior = commandBehavior;
            return copy;
        }
public DbCommandInterceptionContext WithCommandBehavior ( CommandBehavior commandBehavior ) { var copy = TypedClone ( ) ; copy . _commandBehavior = commandBehavior ; return copy ; }
Creates a new  that contains all the contextual information in this
interception context together with the given .
Creates a new that contains all the contextual information in this interception context together with the given .
A new interception context associated with the given command behavior.
A new interception context associated with the given command behavior .
commandBehavior
CommandBehavior
The command behavior to associate.
The command behavior to associate .