mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
v3.2.664 #1155
This commit is contained in:
@ -648,14 +648,18 @@ namespace FreeSql.Internal
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user