AutoMapper: What is the difference between MapFrom and ResolveUsing?

In the past I had a long email exchange on the mailing list with the author of Automapper. MapFrom will do null checks all the way trough the expression:

So you can do opt => opt.MapFrom(src =>
src.SomeProp.Way.Down.Here.Somewhere)
and each level will get checked
for nulls (as it already does for flattening).

Leave a Comment