internal void FetchCss1IntegrationErrors(Css1IntegrationErrors Css1IntegrationErrors, SafeDataReader dr) { Css1IntegrationErrors.ErrorNumber = dr.GetString("ErrorNumber"); Css1IntegrationErrors.ErrorMessage = dr.GetString("ErrorMessage"); Css1IntegrationErrors.ErrorState = dr.GetString("ErrorState"); Css1IntegrationErrors.ErrorProcedure = dr.GetString("ErrorProcedure"); Css1IntegrationErrors.ErrorLine = dr.GetString("ErrorLine"); Css1IntegrationErrors.Type = dr.GetString("Type"); Css1IntegrationErrors.CreatedOn = dr.GetDateTime("CreatedOn").ToString("dd MMM yyyy hh:mm:ss tt"); }
/// <summary> /// Created By : Pavan /// Created Date : 23 July 2015 /// Modified By : /// Modified Date : /// </summary> /// <returns>Css1 Integration Error Log List</returns> public static List<Css1IntegrationErrors> GetCss1IntegrationErrors() { List<Css1IntegrationErrors> Errs = new List<Css1IntegrationErrors>(); System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame(); System.Reflection.MethodBase methodBase = stackFrame.GetMethod(); log.Debug("Start: " + methodBase.Name); var reader = SqlHelper.ExecuteReader(ConnectionUtility.GetConnectionString(), CommandType.StoredProcedure, "SPGetCss1IntegrationErrorDetails"); var safe = new SafeDataReader(reader); while (reader.Read()) { var Error = new Css1IntegrationErrors(); Error.FetchCss1IntegrationErrors(Error, safe); Errs.Add(Error); } log.Debug("End: " + methodBase.Name); return Errs; }