コード例 #1
0
 /// <summary>
 /// This is the constructor of clsInvoicePage
 /// </summary>
 public clsMainSQL()
 {
     try
     {
         db         = new clsDataAccess();
         SQLQueries = new clsSearchSQL();
     }
     catch (Exception ex)
     {
         //Just throw the exception
         throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." +
                             MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message);
     }
 }
コード例 #2
0
        public clsSearchLogic()
        {
            try
            {
                this.dataAccess = new clsDataAccess();

                this.sql = new clsSearchSQL();
            }
            catch (Exception ex)
            {
                //Just throw the exception
                throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." +
                                    MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message);
            }
        }