-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow same-name members with different casings (#1350)
- Loading branch information
Showing
5 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...ObjectPropertyTest.PropertiesWithCaseInsensitiveEqualNamesShouldWork#Mapper.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//HintName: Mapper.g.cs | ||
// <auto-generated /> | ||
#nullable enable | ||
public partial class Mapper | ||
{ | ||
[global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "0.0.1.0")] | ||
private partial global::B Map(global::A source) | ||
{ | ||
var target = new global::B(); | ||
target.Value = source.Value; | ||
return target; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...apshots/ObjectPropertyTest.PropertiesWithCaseInsensitiveEqualNamesShouldWork.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: RMG012, | ||
Title: Source member was not found for target member, | ||
Severity: Info, | ||
WarningLevel: 1, | ||
Location: : (11,4)-(11,36), | ||
MessageFormat: The member {0} on the mapping target type {1} was not found on the mapping source type {2}, | ||
Message: The member value on the mapping target type B was not found on the mapping source type A, | ||
Category: Mapper | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
...hots/ObjectPropertyTest.PropertyConfigurationShouldPreferExactCasing#Mapper.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//HintName: Mapper.g.cs | ||
// <auto-generated /> | ||
#nullable enable | ||
public partial class Mapper | ||
{ | ||
[global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "0.0.1.0")] | ||
public partial global::B Map(global::A source) | ||
{ | ||
var target = new global::B(); | ||
target.value = source.Value; | ||
target.Value = source.value; | ||
return target; | ||
} | ||
} |