public GenericRepository(CustomerDbContext _context) { this._context = _context; table = _context.Set <T>(); }
public GenericRepository() { this._context = new CustomerDbContext(); table = _context.Set <T>(); }