Update split createIndex

This commit is contained in:
sunkaixuan
2022-05-27 11:16:03 +08:00
parent 20301b6c6e
commit 9f2b660bb4

View File

@@ -222,6 +222,10 @@ namespace SqlSugar
{
foreach (var item in entityInfo.Indexs)
{
if (entityInfo.Type.GetCustomAttribute<SplitTableAttribute>() != null)
{
item.IndexName = item.IndexName + entityInfo.DbTableName;
}
if (!this.Context.DbMaintenance.IsAnyIndex(item.IndexName))
{
var fileds = item.IndexFields