Browse Source

Update EntityMaintenance

pull/19/head
sunkaixuan 3 years ago
parent
commit
bb652aff82
  1. 10
      Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs

10
Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs

@ -171,7 +171,15 @@ namespace SqlSugar
{
return string.Empty;
}
return xeNode.Element("summary").Value.ToSqlFilter().Trim();
var summary = xeNode.Element("summary");
if (summary != null)
{
return summary.Value.ToSqlFilter().Trim();
}
else
{
return xeNode.Elements().Where(x=>x.Name.ToString().EqualCase("summary")).Select(it=>it.Value).FirstOrDefault().ToSqlFilter().Trim()??"";
}
}
/// <summary>
/// Gets the code annotation for the database table

Loading…
Cancel
Save