Add Repository basics function in order to simplify entity query builder, add missing gitignore file