public UnitOfWork()
 {
     _context = new MyDbContext();
 }
Example #2
0
 public GenericRepository(MyDbContext context)
 {
     _context   = new MyDbContext();
     _entitySet = context.Set <T>();
 }