mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-03 20:27:56 +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)
|
||||
{
|
||||
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