mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 09:44:39 +08:00
Update CodeFirst IndexName
This commit is contained in:
@@ -344,6 +344,14 @@ namespace SqlSugar
|
||||
include=Regex.Match( item.IndexName,@"\{include\:.+$").Value;
|
||||
item.IndexName = item.IndexName.Replace(include, "");
|
||||
}
|
||||
if (item.IndexName.Contains("."))
|
||||
{
|
||||
item.IndexName = item.IndexName.Replace(",","_");
|
||||
if (item.IndexName.Contains("["))
|
||||
{
|
||||
item.IndexName = item.IndexName.Replace("[", "").Replace("]", "");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!this.Context.DbMaintenance.IsAnyIndex(item.IndexName))
|
||||
{
|
||||
|
Reference in New Issue
Block a user