예제 #1
0
        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);
        }
예제 #2
0
 public void Initialize()
 {
     this.curElementFactory = DbElementFactoryGetter.GetDBTypeElementFactory(this.dataBaseType);
     this.dBAccesserFactory = new DBAccesserFactory();
     this.dBAccesserFactory.Initialize(this.dataBaseType, this.connString, true);
 }
예제 #3
0
 public void Initialize(string connStr, DataBaseType dbType)
 {
     this.connectionStr = connStr;
     this.dbEleFactory  = DbElementFactoryGetter.GetDBTypeElementFactory(dbType);
     this.adoBase       = this.dbEleFactory.GetADOBase(connStr);
 }