I am unable to use Auto Mapper with .net core 2.2. It's keep throwing this error :

> 
> Unmapped members were found. Review the types and members below. Add a
>  custom mapping expression, ignore, add a custom resolver, or modify
>  the source/destination type For no matching constructor, add a no-arg
>  ctor, add optional arguments, or map all of the constructor parameters
>  ======================================================================================================================================================================================================= AutoMapper created this type map for you, but your types cannot be
>  mapped using the current configuration. IDataReader -> List`1
>  (Destination member list) System.Data.IDataReader ->
>  System.Collections.Generic.List`1[[Models.EngineModel,
>  Models, Version=1.0.0.0, Culture=neutral,
>  PublicKeyToken=null]] (Destination member list)
> 
> 
> Unmapped properties: Capacity
> 
> 
> 

Here is my EngineModel class:

```cs
public class EngineModel
{
        public string Id { get; set; }

        public int engineNo { get; set; }

        public string engineHost { get; set; }
}

```

Here is my Profile:

```cs
    public class EngineMappingProfile : Profile
    {
        public EngineMappingProfile()
        {

            CreateMap<IDataReader, EngineModel>()
               .ForMember(dest => dest.Id , opt => opt.MapFrom(src => src.GetString(src.GetOrdinal("ID"))))
               .ForMember(dest => dest.engineNo , opt => opt.MapFrom(src => src.GetInt32(src.GetOrdinal("ENG_NO"))))
               .ForMember(dest => dest.engineHost , opt => opt.MapFrom(src => src.GetString(src.GetOrdinal("ENG_HOST"))))

        }
    }

```

Here is my Startup.cs ConfigureServices method:

```cs

       public void ConfigureServices(IServiceCollection services)
        {

            Mapper.Initialize(cfg =>
            {
                cfg.AddProfile<EngineMappingProfile>();
            });
            services.AddAutoMapper();

            services.AddMvc()
                .SetCompatibilityVersion(CompatibilityVersion.Version_2_2)
                .AddJsonOptions(options =>
                {
                    options.SerializerSettings.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore;
                });
        }

```

All above code is in my API Project. I am using these profile in my Business Project:

```cs

 var enginesData = AutoMapper.Mapper.Map<IDataReader, List<EngineModel>>(dataReader.mcDataReader);

```

I am using "AutoMapper.Extensions.Microsoft.DependencyInjection (6.0.0)" and "AutoMapper (8.0.0)