Exemplo n.º 1
0
 /// <summary>
 /// Finishes profiling for 'command', recording durations.
 /// </summary>
 public static void ExecuteFinish(
     this SqlProfiler sqlProfiler,
     IDbCommand command,
     SqlExecuteType type,
     DbDataReader reader = null)
 {
     sqlProfiler?.ExecuteFinishImpl(command, type, reader);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Finishes profiling for 'command', recording durations.
 /// </summary>
 public static void ExecuteFinish(this SqlProfiler sqlProfiler, IDbCommand command, ExecuteType type, DbDataReader reader = null)
 {
     if (sqlProfiler == null)
     {
         return;
     }
     sqlProfiler.ExecuteFinishImpl(command, type, reader);
 }