public void CleanTable() { var dbContext = new KPMGTransactionContext(); dbContext.Database.ExecuteSqlCommand("delete from Transactions"); dbContext.Dispose(); }
public DataPersistance() { var dbContext = new KPMGTransactionContext(); unitOfWork = new UnitOfWork(dbContext); transactionRepository = unitOfWork.Repository<Transaction>(); }