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