public void OnError(IDbCommand profiledDbCommand, Profiling.Data.SqlExecuteType executeType, Exception exception) { var formatter = new Profiling.SqlFormatters.SqlServerFormatter(); exception.Data["SQL"] = formatter.FormatSql(profiledDbCommand.CommandText, SqlTiming.GetCommandParameters(profiledDbCommand)); this.wrapped.OnError(profiledDbCommand, executeType, exception); }
public void ExecuteStart(IDbCommand profiledDbCommand, Profiling.Data.SqlExecuteType executeType) { this.wrapped.ExecuteStart(profiledDbCommand, executeType); }
public void ExecuteFinish(IDbCommand profiledDbCommand, Profiling.Data.SqlExecuteType executeType, DbDataReader reader) { this.wrapped.ExecuteFinish(profiledDbCommand, executeType, reader); }