示例#1
0
        public static void ExecuteSqlTranWithIndentity(string dbKey, Hashtable SQLStringList)
        {
            MyDbConnection2 conn = null;

            try
            {
                conn = DbHelperMySQL3.PopDBConnection(dbKey);
                if (null != conn)
                {
                    conn.ExecuteSqlTranWithIndentity(SQLStringList);
                }
            }
            finally
            {
                DbHelperMySQL3.PushDBConnection(conn);
            }
        }
示例#2
0
        /// <summary>
        /// 执行多条SQL语句,实现数据库事务。
        /// </summary>
        /// <param name="SQLStringList">SQL语句的哈希表(key为sql语句,value是该语句的MySqlParameter[])</param>
        public static void ExecuteSqlTranWithIndentity(string dbKey, Hashtable SQLStringList)
        {
            MyDbConnection2 conn = null;

            try
            {
                conn = PopDBConnection(dbKey);
                if (null == conn)
                {
                    return;
                }

                conn.ExecuteSqlTranWithIndentity(SQLStringList);
            }
            finally
            {
                PushDBConnection(conn);
            }
        }
示例#3
0
        /// <summary>
        /// 执行多条SQL语句,实现数据库事务。
        /// </summary>
        /// <param name="SQLStringList">SQL语句的哈希表(key为sql语句,value是该语句的MySqlParameter[])</param>
        public static void ExecuteSqlTranWithIndentity(string dbKey, System.Collections.Generic.List <CommandInfo> SQLStringList)
        {
            MyDbConnection2 conn = null;

            try
            {
                conn = PopDBConnection(dbKey);
                if (null == conn)
                {
                    return;
                }

                conn.ExecuteSqlTranWithIndentity(SQLStringList);
            }
            finally
            {
                PushDBConnection(conn);
            }
        }