Update quest db unique index

This commit is contained in:
sunkaixuan 2023-10-15 11:48:59 +08:00
parent fa5109cc7d
commit fcc567aa26

View File

@ -220,8 +220,8 @@ namespace SqlSugar
if (entityInfo.Indexs != null) if (entityInfo.Indexs != null)
{ {
foreach (var item in entityInfo.Indexs) foreach (var item in entityInfo.Indexs)
{ {
CreateIndex(entityInfo.DbTableName, item.IndexFields.Select(it => it.Key).ToArray()); CreateIndex(entityInfo.DbTableName, item.IndexFields.Select(it => it.Key).ToArray(),item.IsUnique);
} }
} }
} }