Пример #1
0
 public void CleanTable()
 {
     var dbContext = new KPMGTransactionContext();
     dbContext.Database.ExecuteSqlCommand("delete from Transactions");
     dbContext.Dispose();
 }
Пример #2
0
 public DataPersistance()
 {
     var dbContext = new KPMGTransactionContext();
     unitOfWork = new UnitOfWork(dbContext);
     transactionRepository = unitOfWork.Repository<Transaction>();
 }