Make GenericRepository.add to return object, so we can get generated id