public OracleDataBaseMgr(DataBaseChoice choice) { if (choice == DataBaseChoice.OaUserOracle) { _connString = ConfigurationManager.ConnectionStrings["OaUserOracle"].ConnectionString; } }
/// <summary> /// 创建指定类型数据库管理者 /// </summary> /// <param name="choice"></param> /// <returns>支持的数据库管理者 或 空</returns> public IDataBaseMgr Create(DataBaseChoice choice) { switch (choice) { case DataBaseChoice.MSSQLSERVER: return(new MsSQLDataBaseMgr()); case DataBaseChoice.Oracle: return(new OracleDataBaseMgr(choice)); case DataBaseChoice.OaUserOracle: return(new OracleDataBaseMgr(choice)); } return(null); }