Normally, we use AutoMapper to Map object like this:
|
|
however, this will create a new instanse of TTarget
, then the reference of target
would be changed. The original object of target will not change in this case. The solution is as follows:
|
|