You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug MapProperty maps MapperIgnoreSource properties but will not map MapperIgnoreTarget properties.
To Reproduce
[Mapper]publicstaticpartialclassMapper{[MapperIgnoreSource("Value")]// [MapperIgnoreTarget("Dest")][MapProperty("Value","Dest")]publicstaticpartial B IgnoredSource(Asrc);// [MapperIgnoreSource("Value")][MapperIgnoreTarget("Dest")][MapProperty("Value","Dest")]publicstaticpartial B IgnoredTarget(Asrc);}publicrecordA{publicintValue{get;set;}}publicrecordB{publicintDest{get;set;}}
Expected behaviour
Mapperly should either not map when MapperIgnoreTarget is used or it should map when mapping from an ignored source property.
If we change Mapperly to map ignored properties then it should create a warning stating that ignoring the property is unneeded and has been overwritten.
The text was updated successfully, but these errors were encountered:
Describe the bug
MapProperty
mapsMapperIgnoreSource
properties but will not mapMapperIgnoreTarget
properties.To Reproduce
Expected behaviour
Mapperly should either not map when
MapperIgnoreTarget
is used or it should map when mapping from an ignored source property.If we change Mapperly to map ignored properties then it should create a warning stating that ignoring the property is unneeded and has been overwritten.
The text was updated successfully, but these errors were encountered: