public static void AddCollectionMappers(this IMapperConfigurationExpression cfg) { cfg.Features.Set(new GeneratePropertyMapsExpressionFeature()); cfg.InsertBefore <ReadOnlyCollectionMapper>( new ObjectToEquivalencyExpressionByEquivalencyExistingMapper(), new EquivalentExpressionAddRemoveCollectionMapper()); }