Skip to content

Commit 6cbd071

Browse files
committed
fixed SqlMap.ResultMaps
1 parent eaca33e commit 6cbd071

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/SmartCode.CLI/RazorTemplates/SqlMap-MySql.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
var colIndex = 0;
2020
var notEqCols = table.Columns.Where(m => m.ConvertedName != m.Name);
2121
var resultMapName = $"{table.ConvertedName}ResultMap";
22-
var queryStatementResultMap = table.HasColNameNotEqConvertedName ? "" : $"ResultMap=\"{resultMapName}\"";
22+
var queryStatementResultMap = table.HasColNameNotEqConvertedName ? $"ResultMap=\"{resultMapName}\"" : "";
2323
}
2424
<?xml version="1.0" encoding="utf-8" ?>
2525
<!--

src/SmartCode.CLI/RazorTemplates/SqlMap-PostgreSql.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
var prefix = dbSource.DbProvider.ParameterPrefix;
2020
var notEqCols = table.Columns.Where(m => m.ConvertedName != m.Name);
2121
var resultMapName = $"{table.ConvertedName}ResultMap";
22-
var queryStatementResultMap = table.HasColNameNotEqConvertedName ? "" : $"ResultMap=\"{resultMapName}\"";
22+
var queryStatementResultMap = table.HasColNameNotEqConvertedName ? $"ResultMap=\"{resultMapName}\"" : "";
2323
}
2424
<?xml version="1.0" encoding="utf-8" ?>
2525
<!--

src/SmartCode.CLI/RazorTemplates/SqlMap-SqlServer.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
var prefix = dbSource.DbProvider.ParameterPrefix;
2020
var notEqCols = table.Columns.Where(m => m.ConvertedName != m.Name);
2121
var resultMapName = $"{table.ConvertedName}ResultMap";
22-
var queryStatementResultMap = table.HasColNameNotEqConvertedName ? "" : $"ResultMap=\"{resultMapName}\"";
22+
var queryStatementResultMap = table.HasColNameNotEqConvertedName ? $"ResultMap=\"{resultMapName}\"" : "";
2323
}
2424
<?xml version="1.0" encoding="utf-8" ?>
2525
<!--

src/SmartCode.CLI/SmartCode.CLI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<RepositoryType>Github</RepositoryType>
2121
<PackageTags>SmartCode SmartSql</PackageTags>
2222
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
23-
<Version>1.3.6</Version>
23+
<Version>1.3.8</Version>
2424
<PackageIconUrl>https://raw.githubusercontent.com/Ahoo-Wang/SmartCode/master/doc/Logo.png</PackageIconUrl>
2525
</PropertyGroup>
2626

0 commit comments

Comments
 (0)