public override Task OnConnectionOpenedAsync(FilterContext context) { this.transaction = this.factory(context.Connection) as DbTransaction; return(Task.CompletedTask); }
public override Task OnCommandCreatedAsync(FilterContext context) { context.Command.Transaction = this.transaction; return(Task.CompletedTask); }
public override void OnConnectionOpened(FilterContext context) { this.transaction = this.factory(context.Connection); }
public override void OnCommandCreated(FilterContext context) { context.Command.Transaction = this.transaction; }
public virtual Task OnExceptionAsync(FilterContext context) => Task.CompletedTask;
public virtual void OnCommandCreated(FilterContext context) { }
public virtual Task OnConnectionClosedAsync(FilterContext context) => Task.CompletedTask;
public virtual Task OnCommandExecutedAsync(FilterContext context) => Task.CompletedTask;
public virtual Task OnConnectionOpeningAsync(FilterContext context) => Task.CompletedTask;
public virtual void OnException(FilterContext context) { }
public virtual void OnConnectionOpening(FilterContext context) { }
public virtual void OnConnectionClosing(FilterContext context) { }
public virtual void OnCommandExecuted(FilterContext context) { }