-
I want to do a deep copy of an object. I expected that when I map object it will return me new instance but on my surprise it returned object by reference. In my profile file I have: and in the code I wanted to use mapping like this ( How to achieve my wanted result to get new instance with same properties ? E.g. on this Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
AutoMapper is not a cloning library. It is not designed to do so. Do not use AutoMapper to clone objects, pick another approach. |
Beta Was this translation helpful? Give feedback.
AutoMapper is not a cloning library. It is not designed to do so. Do not use AutoMapper to clone objects, pick another approach.