/// <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); }
/// <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); }