Updated Generic Repository to use page size