static ObjectDependencyStore() { _persistentObj = PersistenceFactory.GetPersistentObject(ConfigRegistrar.GetConfigMethod() (ConfigConst.PERSISTENCE_DRIVER)); if (_persistentObj == null) { throw new Exception(LocalConst.ERR_NON_EXISTENT_TYPE); } }
static DbParameter() { _dbHost = ConfigRegistrar.GetConfigMethod() (ConfigConst.DB_HOST); _dbName = ConfigRegistrar.GetConfigMethod() (ConfigConst.DB_NAME); _dbUserID = ConfigRegistrar.GetConfigMethod() (ConfigConst.DB_USERNAME); _dbPassword = ConfigRegistrar.GetConfigMethod() (ConfigConst.DB_PASSWORD); _connectionStrForReading = "Data Source=" + _dbHost + ";Database=" + _dbName + ";User ID=" + _dbUserID + ";Password="******";Min Pool Size=3;Max Pool Size=5"; _connectionStrForWriting = "Data Source=" + _dbHost + ";Database=" + _dbName + ";User ID=" + _dbUserID + ";Password="******";Min Pool Size=3;Max Pool Size=5"; }