Attribute-based mapping with ReverseMap and Ignore #3712
timmi-on-rails
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
I see, so this behaviour is as expected. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Source/destination types
I would expect that the
[Ignore]
causes the member to be ignored in both directions.But instead it is ignored, when mapping
Blog
toBlogDto
, but it is not ignored in the reverse mapping.Also I find it confusing, that the
[IgnoreMap]
attribute works, like I expect the[Ignore]
to work.This comment here shows me, that the
[Ignore]
should work both ways, because the issuer wanted a one way solution.#3362 (comment)
AutoMapper Version: 10.1.1
Beta Was this translation helpful? Give feedback.
All reactions