Skip to content

Speculations on How Collections Get Mapped #85

@markolbert

Description

@markolbert

I ran into a situation involving collections and Automapper which I solved through a less-than-intuitive workaround. I've tried to describe the problem, and my solution, in the first answer to https://stackoverflow.com/questions/50382252/mapping-collections-in-automapper/50421075.

If my speculations on how Automapper handles collections are correct, would it be possible to tweak the logic so it ignores differences in collection types between destination and source, as long as the destination collection type can accept an "add"?

I'd also be interested in correcting my theory, if something else is going on. Thanx!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions