Exemple #1
0
 // ScalarExecutingAsync
 public override Task <InterceptionResult <object> > ScalarExecutingAsync(DbCommand command, CommandEventData eventData, InterceptionResult <object> result, CancellationToken cancellationToken = default(CancellationToken))
 {
     QueryCounterExtensions.OnExecuting(command, command.CommandText, command.Parameters);
     return(base.ScalarExecutingAsync(command, eventData, result, cancellationToken));
 }
Exemple #2
0
 // ScalarExecuting
 public override InterceptionResult <object> ScalarExecuting(DbCommand command, CommandEventData eventData, InterceptionResult <object> result)
 {
     QueryCounterExtensions.OnExecuting(command, command.CommandText, command.Parameters);
     return(base.ScalarExecuting(command, eventData, result));
 }