So I'm my appsettings I have some string array filters that I need to use within mapping.
How can I pass them to MappingMethod
below? (sample below does not work as MyProfile can't have parameters)
public class MyProfile: Profile
{
public MyProfile(IConfiguration configuration)
{
CreateMap<Source, Destination>()
.ForMember(dest => dest.X,
opt => opt.MapFrom(src => MappingMethod(src.NestedSource, configuration.GetSection("settingsArray")))
}
}