示例#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);
 }