public TransactionQueue(Database parent) { dbParent = parent; SQLConsole.Data.LLDBA.SERVERINFO svrinfo; svrinfo = parent.GetDatabaseConnector().svrinfo; this._dbo = parent; this._dbo.DBEvent_ReconnectingCloseCause += new Database.ReconnectingCloseCause(_dbo_DBEvent_ReconnectingCloseCause); this._transList = new System.Collections.ArrayList(); this.Atomic = true; this.AutoExecute = false; this.odt = null; this.oc = null; this._errorState = 0; this._lastID = -1; }
public Database getNewConnection() { Database newDB = new Database(new LLDBA()); newDB.GetDatabaseConnector().svrinfo = this.GetDatabaseConnector().svrinfo; newDB.Open(); newDB.UseDatabase(newDB.GetDatabaseConnector().svrinfo._database); return newDB; }