protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         db.Dispose();
     }
     base.Dispose(disposing);
 }
Beispiel #2
0
        public void ProcessTransactions(string fullPathFileName)
        {
            var criteriaList = new List <TransactionCriteria>();

            using (var context = new RentalContext())
            {
                var repo = new TransactionRepository(context);
                criteriaList = repo.GetTransactionCriterias(true).ToList();
                context.Dispose();
            }
            var extracts         = ExtractTransactions(fullPathFileName, criteriaList);
            var filteredExtracts = FilterTransactionItemsToPersist(extracts);

            SaveTransactionItems(filteredExtracts);
            var x = 1;
        }
Beispiel #3
0
 public void TearDown()
 {
     rentalContext.Dispose();
 }