Skip to content

Commit

Permalink
fix MapsterMapper#313 flag p produce invalid name
Browse files Browse the repository at this point in the history
  • Loading branch information
chaowlert committed Feb 25, 2021
1 parent f0b4acf commit c2c3e87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"mapster.tool": {
"version": "8.0.0",
"version": "8.0.1",
"commands": [
"dotnet-mapster"
]
Expand Down
2 changes: 1 addition & 1 deletion src/Mapster.Tool/Mapster.Tool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>Mapster.Tool.snk</AssemblyOriginatorKeyFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>8.0.0</Version>
<Version>8.0.1</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Copyright>Copyright (c) 2020 Chaowlert Chaisrichalermpol</Copyright>
<PackageIcon>icon.png</PackageIcon>
Expand Down
1 change: 1 addition & 0 deletions src/Mapster.Tool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ private static void GenerateExtensions(ExtensionOptions opt)
//add type name to prevent duplication
translator.Translate(entityType);
var destName = translator.Translate(tuple.Destination);
destName = destName.Split('.').Last();

var name = tuple.Destination.Name == entityType.Name
? destName
Expand Down

0 comments on commit c2c3e87

Please sign in to comment.