Skip to content

Commit 5ac8b7d

Browse files
committed
v3.2.664 #1155
1 parent 5c427c0 commit 5ac8b7d

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<PropertyGroup>
12-
<Version>3.2.663</Version>
12+
<Version>3.2.664</Version>
1313
</PropertyGroup>
1414

1515
<ItemGroup>

FreeSql.DbContext/FreeSql.DbContext.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FreeSql/Internal/CommonUtils.cs

+6-2
Original file line numberDiff line numberDiff line change
@@ -648,14 +648,18 @@ Dictionary<string, string> LocalGetComment(Type localType, int level)
648648
{
649649
var cbs = LocalGetComment(prop.DeclaringType, level + 1);
650650
if (cbs != null && cbs.TryGetValue(prop.Name, out var otherComment) && string.IsNullOrEmpty(otherComment) == false)
651-
dic.Add(prop.Name, otherComment);
651+
{
652+
if (dic.ContainsKey(prop.Name)) dic[prop.Name] = otherComment;
653+
else dic.Add(prop.Name, otherComment);
654+
}
652655
}
653656
continue;
654657
}
655658
var comment = node.InnerXml.Trim(' ', '\r', '\n', '\t');
656659
if (string.IsNullOrEmpty(comment)) continue;
657660

658-
dic.Add(prop.Name, comment);
661+
if (dic.ContainsKey(prop.Name)) dic[prop.Name] = comment;
662+
else dic.Add(prop.Name, comment);
659663
}
660664
}
661665
}

0 commit comments

Comments
 (0)