Beispiel #1
0
 public LogController()
 {
     try
     {
         this.m_c_db = wa_panel_store.Models.cConstants.pb__get_MySQL_Adapter();
     }
     catch (Exception)
     {
         System.Diagnostics.Debugger.Break();
     }
     finally { }
 }
Beispiel #2
0
        public static wcl_db_adapter.cDBMySQLAdapter pb__get_MySQL_Adapter()
        {
            bool b_rc = true;

            try
            {
                if (sta_c_db == null)
                {
                    sta_c_db = new wcl_db_adapter.cDBMySQLAdapter(cConstants.m_s_connection_string);
                }
            }
            catch (Exception)
            {
                b_rc     = false;
                sta_c_db = null;
                System.Diagnostics.Debugger.Break();
            }
            finally { }
            return(sta_c_db);
        }