I have a mapper in place and I need to perform a conditional mapping, Condition is, map the value from source to destination only if the destination property value is null. How would I do that?
.ForMember(o => o.EmployeeId, opt => opt.MapFrom(u => u.EmployeeId))
I want to assign value to EmployeeId only if it does't have a value already.
Condition/PreConditionoverloads. You just have to find the right one.