CreateMap and CreateProjection for same source / target types #4056
-
As the upgrade guide clearly states and several stack overflow questions point out, it is not possible to define Why is that? We have often the case, that a mapping is done sometimes "inbetween some service logic", where a direct instance to be mapped is given (i.e., only Map<> can be used), and sometimes directly succeeding a database query (i.e., ProjectTo<> would provide a significat performance boost but we are using Map<> instead). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It is. And that's what |
Beta Was this translation helpful? Give feedback.
It is. And that's what
CreateMap
does :) So if you needMap
, you have no use forCreateProjection
.