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