AutoMapper: What is the difference between PreserveReferences and MaxDepth?
I'm a little bit confused. I can't find out the difference between PreserveReferences and MaxDepth . Let's suppose we have the following DTOs and models. public class PersonEntity { public PersonEntity InnerPerson { get; set; } } public class PersonModel { public PersonModel InnerPerson { get; set; } } As written in the documentation: Previously, AutoMapper could handle circular references by keeping track of what was mapped, and on every mapping, check a local hashtable of source/destination objects to see if the item was already mapped. It turns out this tracking is very expensive, and you