Having issues mapping between same 2 types. #1281
Replies: 3 comments 3 replies
-
I am so stupid, I forgot this would need me to inform EF core to track update changes ehhe.. Perks of using an object mapper for the first time, sorry. |
Beta Was this translation helpful? Give feedback.
-
Actually this didn't still solve the problem for me.. this is getting embarrassing. |
Beta Was this translation helpful? Give feedback.
-
With the current implementation Mapperly just returns your input argument as you can see in your implementation screenshot (
Is the request body of the same type as your entity? Do you want to replace the object or just update some properties? Depending on the questions above you have several options to fix your code:
|
Beta Was this translation helpful? Give feedback.
-
I have a domain entity called Activity, this is being returned by my API. When I get it, I want to update the database Activity.. So I did this,
Generated File looks like this.
and my mapping code looks like this and has this warning..
and the mapping simply doesnt work, nothing changed.. I know I am probably doing a really stupid mistake, I love the idea of this mapper and am just trying to figure this out but I couldn't
Beta Was this translation helpful? Give feedback.
All reactions