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
A common mistake with MapProperty is to include the type name as part of the string. This usually occurs when mapping a deeply nested property and the user removes nameof and adds parentheses. Mistakenly adding the enclosing type name to the path.
Note that C# does not allow properties to have the same name as the enclosing type.
publicrecordDog(Tailtail);publicrecordTail(Colourcolour);// Diagnostic should be emitted because the first member path has the same name as the type[MapProperty("Colour","Dog.Tail.Colour")]publicstaticpartialDogMap(Tablesrc);
This should probably also check MapperIgnoreTarget etc .
A common mistake with
MapProperty
is to include the type name as part of the string. This usually occurs when mapping a deeply nested property and the user removesnameof
and adds parentheses. Mistakenly adding the enclosing type name to the path.Note that C# does not allow properties to have the same name as the enclosing type.
This should probably also check
MapperIgnoreTarget
etc .See #1030
The text was updated successfully, but these errors were encountered: