Exemplo n.º 1
0
        /// <summary>
        /// Execute all sql statements.
        /// </summary>
        /// <returns>Execution success status.</returns>
        public ICollection <int> ExecuteTransaction()
        {
            ICollection <int> rowsAffected;

            try
            {
                rowsAffected = _dbImpl.ExeTrans(_sqls, false);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            //Call Clear from the caller code since Add was called from there
            //finally
            //{
            //  Clear();
            //}
            return(rowsAffected);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Execute all sql statements.
        /// </summary>
        /// <returns>Execution success status.</returns>
        public ICollection <int> Execute2PTransaction()
        {
            ICollection <int> rowsAffected;

            try
            {
                rowsAffected = RadDBImpl.ExeTrans(_sqls, _dbNames);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(rowsAffected);
        }