Migrate automapper 8 to 13 with custom resolver implemenation
I have custom resolver for automapper written with automapper 8, after moving to 13 I started noticing below error.
How to fix this ? where to look for getting existing mapping inside customer resolver ?
Is it possible to use Automapper to map different source fields to a destination based on condition logic?
I have a source class with multiple fields, 5 of those fields can be null but only 1 field can be not null at a time.
I would like to map to a single destination field “NoteParent” using the logic something like bellow. i.e I want the string in MapFrom to be put into the destination NoteParent field.
List Mapping: ForMember configuration when mapping is conditional for DateTime properties , destination object DateTime properties always has default
Because my Issue on Github was closed I am opening a thread here.
Always map to List even if source object has single object using AutoMapper
I have source object ConversationResponseDTO which I don’t have any control over. Either the single object has value or the list value has value.