Skip to content

Commit

Permalink
v3.2.664 #1155
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 committed Jun 14, 2022
1 parent 5c427c0 commit 5ac8b7d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>3.2.663</Version>
<Version>3.2.664</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 9 additions & 0 deletions FreeSql.DbContext/FreeSql.DbContext.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions FreeSql/Internal/CommonUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -648,14 +648,18 @@ Dictionary<string, string> LocalGetComment(Type localType, int level)
{
var cbs = LocalGetComment(prop.DeclaringType, level + 1);
if (cbs != null && cbs.TryGetValue(prop.Name, out var otherComment) && string.IsNullOrEmpty(otherComment) == false)
dic.Add(prop.Name, otherComment);
{
if (dic.ContainsKey(prop.Name)) dic[prop.Name] = otherComment;
else dic.Add(prop.Name, otherComment);
}
}
continue;
}
var comment = node.InnerXml.Trim(' ', '\r', '\n', '\t');
if (string.IsNullOrEmpty(comment)) continue;

dic.Add(prop.Name, comment);
if (dic.ContainsKey(prop.Name)) dic[prop.Name] = comment;
else dic.Add(prop.Name, comment);
}
}
}
Expand Down

0 comments on commit 5ac8b7d

Please sign in to comment.