With this configuration for some reason Conver function of Custom Converter is not called when using FlatteringConfig from EmitMapper Samples. It is called, when DefaultMapConfig is used.
The configuration:
var userMapper = ObjectMapperManager.DefaultInstance.GetMapper<User, UserModel>(
new FlatteringConfig().ConvertGeneric(typeof(IList<>), typeof(IList<>),
new DefaultCustomConverterProvider(typeof(EntityListToModelListConverter<,>))));
Any ideas about the potential reason?
Solution
Look at my answer below
Because FlatteringConfig overrides
GetMappingOperationsfunction it is not callingFilterOpertationsfunctions, which assigns custom converters. So addingFilterOperationsfunction call to theGetMappingOperationssolved the problem.