예제 #1
0
            public override Task OnConnectionOpenedAsync(FilterContext context)
            {
                this.transaction = this.factory(context.Connection) as DbTransaction;

                return(Task.CompletedTask);
            }
예제 #2
0
            public override Task OnCommandCreatedAsync(FilterContext context)
            {
                context.Command.Transaction = this.transaction;

                return(Task.CompletedTask);
            }
예제 #3
0
 public override void OnConnectionOpened(FilterContext context)
 {
     this.transaction = this.factory(context.Connection);
 }
예제 #4
0
 public override void OnCommandCreated(FilterContext context)
 {
     context.Command.Transaction = this.transaction;
 }
예제 #5
0
 public virtual Task OnExceptionAsync(FilterContext context) => Task.CompletedTask;
예제 #6
0
 public virtual void OnCommandCreated(FilterContext context)
 {
 }
예제 #7
0
 public virtual Task OnConnectionClosedAsync(FilterContext context) => Task.CompletedTask;
예제 #8
0
 public virtual Task OnCommandExecutedAsync(FilterContext context) => Task.CompletedTask;
예제 #9
0
 public virtual Task OnConnectionOpeningAsync(FilterContext context) => Task.CompletedTask;
예제 #10
0
 public virtual void OnException(FilterContext context)
 {
 }
예제 #11
0
 public virtual void OnConnectionOpening(FilterContext context)
 {
 }
예제 #12
0
 public virtual void OnConnectionClosing(FilterContext context)
 {
 }
예제 #13
0
 public virtual void OnCommandExecuted(FilterContext context)
 {
 }