Synchronization code

This commit is contained in:
sunkaixuan
2023-10-11 17:31:01 +08:00
parent a1c7a7905b
commit fcf91c87fc
2 changed files with 6 additions and 1 deletions

View File

@@ -344,6 +344,11 @@ namespace SqlSugar
include=Regex.Match( item.IndexName,@"\{include\:.+$").Value;
item.IndexName = item.IndexName.Replace(include, "");
}
if (item.IndexName.Contains(".")&& item.IndexName.Contains("["))
{
item.IndexName = item.IndexName.Replace(".","_");
item.IndexName = item.IndexName.Replace("[", "").Replace("]", "");
}
}
if (!this.Context.DbMaintenance.IsAnyIndex(item.IndexName))
{