-
I'm wondering if it's possible to map from one object to another object that I already have an instance of? var entity = new Entity { Name = "Something" };
var update = new UpdateEntity { Name = "NewName" };
var mapper = new MyMapper();
var updatedEntity = mapper.Map(entity, update); So in this case the properties from |
Beta Was this translation helpful? Give feedback.
Answered by
wbuck
Jun 21, 2023
Replies: 1 comment
-
OK, I need to define my mapper method to return public partial void Map(Entity entity, UpdateEntity update); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wbuck
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK, I need to define my mapper method to return
void
in order to get this functionality: