public DefaultEntityConverter(MapperProvider mapperProvider, IQueryable <TEntity> entities)
 {
     _entities = entities ?? throw new ArgumentNullException(nameof(entities));
     mapperProvider.CheckArgumentNull(nameof(mapperProvider));
     _mapper = mapperProvider.Mapper;
 }