Example #1
0
            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);
            }
Example #2
0
 public void ExecuteStart(IDbCommand profiledDbCommand, Profiling.Data.SqlExecuteType executeType)
 {
     this.wrapped.ExecuteStart(profiledDbCommand, executeType);
 }
Example #3
0
 public void ExecuteFinish(IDbCommand profiledDbCommand, Profiling.Data.SqlExecuteType executeType, DbDataReader reader)
 {
     this.wrapped.ExecuteFinish(profiledDbCommand, executeType, reader);
 }