示例#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);
     }
 }
示例#2
0
 internal void OnExecutingCommand(string sql, object[] args)
 {
     if (BeforeExecuteCommand != null)
     {
         SqlOperationEventArgs e = new SqlOperationEventArgs(sql, args, FormatCommand(sql, args));
         BeforeExecuteCommand(this, e);
     }
 }