Automapper exception handling while mapping list

436 Views Asked by At

I have two lists, SRCList and DESTList.

SRCList object has got 6 records.

I am using automapper to map these two list.

While mapping, automapper encounters any problem in mapping the 4th record out of 6, I get AutoMapperMappingException.

Can I skip mapping of the record which caused error and continue mapping others? So, in the above example, DESTList will have 5 records, skipping the 4th one.

0

There are 0 best solutions below