mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-08 14:47:59 +08:00
Update quest db unique index
This commit is contained in:
parent
fa5109cc7d
commit
fcc567aa26
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user