public GenericRepository(PortalCoreContext _context) { this._context = _context; _entities = _context.Set <T>(); }