Exemple #1
0
 public void ExecuteBatch(SqlInfoList sqlList, IDbTransaction transaction)
 {
     foreach (SqlInfo sql in sqlList)
     {
         ExecuteNonQuery(sql.Text, sql.Type, transaction, sql.Parameters);
     }
 }
Exemple #2
0
 public void ExecuteBatch(SqlInfoList sqlList)
 {
     foreach (SqlInfo sql in sqlList)
     {
         ExecuteNonQuery(sql.Text, sql.Type, sql.Parameters);
     }
 }
Exemple #3
0
 public void ExecuteBatchInTransaction(SqlInfoList sqlList)
 {
     using (TransactionHelper helper = new TransactionHelper(null, this, TransactionOption.Required))
     {
         ExecuteBatch(sqlList, helper.Transaction);
         helper.TryCommitTransaction();
     }
 }