Update check

This commit is contained in:
sunkaixuan
2023-09-18 15:42:49 +08:00
parent c977c89bad
commit 3315e91391

View File

@@ -353,7 +353,7 @@ namespace SqlSugar
.Select(it =>
{
var dbColumn = entityInfo.Columns.FirstOrDefault(z => z.PropertyName == it.Key);
if (dbColumn == null)
if (dbColumn == null&&entityInfo.Discrimator==null)
{
Check.ExceptionEasy($"{entityInfo.EntityName} no SugarIndex[ {it.Key} ] found", $"类{entityInfo.EntityName} 索引特性没找到列 {it.Key}");
}