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
Creating a mapping between two entities, both of which contain the same read-only computed property of a nullable value type, produces an erroneous RMG066 warning.
Thanks for reporting. I cannot reproduce the RMG066, I always get RMG020 for Value and HasValue of the bool? (which isn't optimal either). Do you have any properties set on the MapperAttribute or do you have a MapperDefaultsAttribute for your assembly?
Describe the bug
Creating a mapping between two entities, both of which contain the same read-only computed property of a nullable value type, produces an erroneous
RMG066
warning.Declaration code
Actual relevant generated code
Expected relevant generated code
The actual generated code is correct. However, the mapping is flagged with:
Environment (please complete the following information):
Additional context
Explicitly adding a
MapperIgnoreSource
for the computed property makes the warning go away:The text was updated successfully, but these errors were encountered: