Skip to content

Adapt(source, destination) does not work when destination is a C# record #832

@roohial57

Description

@roohial57

When using Mapster to map data into an existing object, the mapping works correctly if the destination is a class, but does nothing when the destination is a C# record.

This appears to be caused by record immutability, but the current behavior is not clearly documented and can be misleading.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions