Base implementation of repositories of entities;