Exemple #1
0
 protected bool OnExecuting(IDbCommand cmd)
 {
     if (Executing != null)
     {
         ExecutingEventArgs args = new ExecutingEventArgs(cmd);
         Executing(this, args);
         return(args.Cancel);
     }
     else
     {
         return(false);
     }
 }
Exemple #2
0
 protected bool OnExecuting(IDbCommand cmd)
 {
     if (Executing != null)
     {
         ExecutingEventArgs args = new ExecutingEventArgs(cmd);
         Executing(this, args);
         return args.Cancel;
     }
     else
     {
         return false;
     }
 }