示例#1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public MySqlConfigInfo()
 {
     try
     {
         DbCommon.GetDbConfig(ref m_providerName, ref m_connString, this);
     }
     catch (CustomDataException ex)
     {
         LoggerManager.GetILog("Constructor:SqlServerConfigInfo-" + ex.StackTrace);
     }
 }
示例#2
0
        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);
            }
        }