/// <summary> /// Constructor. /// </summary> public MySqlConfigInfo() { try { DbCommon.GetDbConfig(ref m_providerName, ref m_connString, this); } catch (CustomDataException ex) { LoggerManager.GetILog("Constructor:SqlServerConfigInfo-" + ex.StackTrace); } }
public SqlServerConfigInfo() { try { //System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration(System.Reflection.Assembly.GetEntryAssembly().Location); // m_providerName = config.AppSettings.Settings["DataProvider"].Value; // m_connString = config.AppSettings.Settings["ConnectionString"].Value; DbCommon.GetDbConfig(ref m_providerName, ref m_connString, this); } catch (CustomDataException ex) { LoggerManager.GetILog("Constructor:SqlServerConfigInfo-" + ex.StackTrace); } }