automapper-plus icon indicating copy to clipboard operation
automapper-plus copied to clipboard

Limit the mapping levels

Open stesvis opened this issue 6 years ago • 2 comments

Is there a way to limit the level of the mapping?

Basically the same as the .Net AutoMapper.MaxDepth() https://github.com/AutoMapper/AutoMapper/blob/835261c00c072f3e08232f0cd86d40750e109690/src/AutoMapper/Configuration/MappingExpression.cs#L86

stesvis avatar Feb 09 '18 21:02 stesvis

Not yet - but I'll add it to the roadmap, as it is a nice feature to have.

mark-gerarts avatar Feb 09 '18 21:02 mark-gerarts

Thanks. With objects that reference each other it could end up in an infinite loop..

stesvis avatar Feb 09 '18 22:02 stesvis