Skip to content

Deep clone nested objects and reset all Id properties #2160

@MaNa2k

Description

@MaNa2k

Add support for deep cloning nested object with option to automatically reset ex. int id to 0 for all nested nodes, including parent node.

The reason for this feature is obvious, when your working on jumbo objects, it's a pain writing all the deep cloning code for the complex objects. Alternatively one could make generic code using reflections, but would be nice to have this feature baked in Mapperly.

Maybe activate this feature by using an attribute [] over the mapping profile method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions