/// <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); } }
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); } }