Hello,
I haven't discover what is the proper method to ignore mapping from one collection to another when source collection has object and it has a field which value is wanted ignore mapping from one collection to another?
There are hundreds of samples how to map flat classes but I haven't found any documentation or sample situation above.
What I mean is mentioned below is "some kind of syntax".
CreateMap<CollectOne, CollectTwo>()
.IfValue(CollectTwo.doCopy == true)
.ForMember(CollectTwo.var1, ColletOne.var2)
.ForMember(CollectTwo.var5, ColletOne.var6)
.ForMember(CollectTwo.var7, ColletOne.var10));
Thanks,