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