示例#1
0
 public UnitOfWork()
 {
     _context = DbContextFactory.Create("DB1");
     PermutationsRepository = new PermutationsRepository(_context);
 }
示例#2
0
 public UnitOfWork(DataContext context)
 {
     _context = context;
     PermutationsRepository = new PermutationsRepository(_context);
 }