Skip to content

Argument exception: Source and destination must have same number of arguments #8

@Mytza

Description

@Mytza

Hi,

I am upgrading from an old version of automapper (4.2.1) to latest. We had expression mapping in place between DTO and entities. I am now getting this exception when trying to map an expression from a dto that has extra collection properties that are not present on the entity.
This was working before upgrade.

Is it possible to handle this scenario like it was before. I looked over the source code and could not find any way to configure this.

Thanks in advance,
Mihai

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions