Example #1
0
 public UnitOfWork(IDbFactory factory)
 {
     _context = factory.Get();
 }
Example #2
0
 public Model.gameDbContext Get()
 {
     return _context ?? (_context = new gameDbContext());
 }