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