Exemple #1
0
 public List <Dictionary <string, object> > ExecuteListDictionary(IDbCommand command)
 {
     using (var transaction = new DBTransaction(Schema.Connection))
     {
         try
         {
             return(ExecuteListDictionary(command, transaction));
         }
         catch (Exception ex)
         {
             Helper.OnException(ex);
             transaction.Rollback();
             throw ex;
         }
     }
 }
Exemple #2
0
 public QResult ExecuteQueryResult(IDbCommand command)
 {
     using (var transaction = new DBTransaction(Schema.Connection))
     {
         try
         {
             return(ExecuteQueryResult(command, transaction));
         }
         catch (Exception ex)
         {
             Helper.OnException(ex);
             transaction.Rollback();
             throw ex;
         }
     }
 }
Exemple #3
0
        public async Task Save()
        {
            using (var transaction = new DBTransaction(Table.Connection))
            {
                try
                {
                    await Save(transaction);

                    transaction.Commit();
                }
                catch (Exception ex)
                {
                    Helper.OnException(ex);
                    transaction.Rollback();
                }
            }
        }