Example #1
0
 private void writeTable(string absolutePath, FileParseWriterSQL fileParseWriter, ft_transaction transaction)
 {
     //write to the store
     if (!fileParseWriter.WriteToStore(absolutePath, transaction))
     {
     }
 }
Example #2
0
        public int Parse(string absolutePath, FileParseWriterSQL fileParseWriter)
        {
            try
            {
                using (c227_FileProcessorEntities context1 = new c227_FileProcessorEntities())
                {
                    context1.Set <ft_transaction>().AsNoTracking();
                    var            transactions = context1.ft_transaction.AsNoTracking().ToList();
                    ft_transaction transaction  = transactions.SingleOrDefault(x => x.TransactionId == 123);


                    if (transaction != null)
                    {
                        writeTable(absolutePath, fileParseWriter, transaction);
                    }
                    else
                    {
                    }
                }
            }
            catch (Exception ex)
            {
            }
            return(this.Id);
        }