Example #1
0
        /// <summary>
        /// This will insert the transaction ID from Logs into SOA_TRANSACTION table
        /// </summary>
        /// <param name="logFiles">List of Log files from SW folder</param>
        /// <param name="sh">Instance of Service Helper</param>
        private static void Insert_SOA_Transaction(List <FileInfo> logFiles, ServiceHelper sh)
        {
            SWTNBHelper sw = new SWTNBHelper();

            if (logFiles.Count > 0)
            {
                try
                {
                    //sw.DeleteTransLog(inputDate, sh);
                    int totalRows = sw.Insert_Soa_Trans(logFiles.ToList(), sh);
                    PrintHelper.Trace(string.Format(Messages.TotalRowsInserted, totalRows));
                }
                catch (Exception ex)
                {
                    PrintHelper.Error(Messages.InsertDataFail);
                    PrintHelper.Error(ex.ToString());
                }
            }
        }