internal void OnExecutedCommand(string sql, object[] args) { if (AfterExecuteCommand != null) { SqlOperationEventArgs e = new SqlOperationEventArgs(sql, args, FormatCommand(sql, args), _sqlHelper); AfterExecuteCommand(this, e); } }
internal void OnExecutingCommand(string sql, object[] args) { if (BeforeExecuteCommand != null) { SqlOperationEventArgs e = new SqlOperationEventArgs(sql, args, FormatCommand(sql, args)); BeforeExecuteCommand(this, e); } }