private static void RefreshConfig() { string connStr = null; DataBaseType dbType = CurDbInfoMgr.GetDbType(); connStr = CurDbInfoMgr.GetConnString(); DataEntrance.DBFactory.Initialize(dbType, connStr, true); DataEntrance.CurElementFactory = DbElementFactoryGetter.GetDBTypeElementFactory(dbType); }
public void Initialize() { this.curElementFactory = DbElementFactoryGetter.GetDBTypeElementFactory(this.dataBaseType); this.dBAccesserFactory = new DBAccesserFactory(); this.dBAccesserFactory.Initialize(this.dataBaseType, this.connString, true); }
public void Initialize(string connStr, DataBaseType dbType) { this.connectionStr = connStr; this.dbEleFactory = DbElementFactoryGetter.GetDBTypeElementFactory(dbType); this.adoBase = this.dbEleFactory.GetADOBase(connStr); }