mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 22:25:49 +08:00
Update split createIndex
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user