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); } }
/// <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); } }
/// <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); } }