mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Update quest db unique index
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user