public UnitOfWork() { _context = DbContextFactory.Create("DB1"); PermutationsRepository = new PermutationsRepository(_context); }
public UnitOfWork(DataContext context) { _context = context; PermutationsRepository = new PermutationsRepository(_context); }