Пример #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)
 {
 }