Hi there
I am hoping for some help with this bug.
I have a class that inherits from a List<T>. When setting the mapper-configuration I get an error:
System.ArgumentException: 'Incorrect number of arguments supplied for call to method 'AutoMapperPr.DestinationModel get_Item(Int32)' (Parameter 'property')'
Console application .Net 6 with AutoMapper v.11.0.0
Create these classes:
1. SourceModel
2. SourceModelCollection : List<SourceModel>
3. DestinationModel
4. DestionationModelCollection : List<DestionationModel>
Setup the automapper configuration:
var createMap = new MapperConfiguration
(
_config =>
{
_config.CreateMap<SourceModel, DestinationModel>().ReverseMap();
_config.CreateMap<SourceModelCollection, DestinationModelCollection>().ReverseMap();
}
);