示例#1
0
 protected void Execute(IQSimpleCommand cmd)
 {
     try
     {
         cmd.Execute();
     }
     catch (Exception ex)
     {
         DoEventManagerDispatchCommandException(this, ex, cmd);
     }
 }
示例#2
0
 public void Execute()
 {
     try
     {
         _Cmd.Execute();
         if (null != _Transaction)
         {
             _Transaction.Commit();
         }
     }
     catch
     {
         if (null != _Transaction)
         {
             _Transaction.Abort();
         }
         throw;
     }
 }
 protected void Execute(IQSimpleCommand cmd)
 {
     try
     {
         cmd.Execute ();
     }
     catch (Exception ex)
     {
         DoEventManagerDispatchCommandException (this, ex, cmd);
     }
 }