public virtual bool ExecuteStoredProcedure(string ProcedureName, List <Tuple <string, object> > Parameters) { bool result = true; try { result = _context.ExecuteStoredProcedure(ProcedureName, Parameters); } catch (Exception e) { result = false; Logger.GenerateError(e, System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, "ProcedureName : " + ProcedureName + " and Parameters.Count = " + Parameters.Count + " and Parameters = " + string.Join(",", Parameters.Select(t => string.Format("[ '{0}', '{1}']", (t.Item1 ?? "NULL"), (t.Item2 ?? "NULL"))))); } return(result); }
public virtual bool ExecuteStoredProcedure(string ProcedureName, List <Tuple <string, object> > Parameters) { bool result = true; try { result = _context.ExecuteStoredProcedure(ProcedureName, Parameters); } catch (Exception e) { result = false; Logger.GenerateError(e, System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, "ProcedureName : " + ProcedureName + " and Parameters :" + Parameters.ToString()); } return(result); }