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;
 }
Exemple #5
0
 public virtual Task OnExceptionAsync(FilterContext context) => Task.CompletedTask;
Exemple #6
0
 public virtual void OnCommandCreated(FilterContext context)
 {
 }
Exemple #7
0
 public virtual Task OnConnectionClosedAsync(FilterContext context) => Task.CompletedTask;
Exemple #8
0
 public virtual Task OnCommandExecutedAsync(FilterContext context) => Task.CompletedTask;
Exemple #9
0
 public virtual Task OnConnectionOpeningAsync(FilterContext context) => Task.CompletedTask;
Exemple #10
0
 public virtual void OnException(FilterContext context)
 {
 }
Exemple #11
0
 public virtual void OnConnectionOpening(FilterContext context)
 {
 }
Exemple #12
0
 public virtual void OnConnectionClosing(FilterContext context)
 {
 }
Exemple #13
0
 public virtual void OnCommandExecuted(FilterContext context)
 {
 }