mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
New Index support indexSuffix
This commit is contained in:
@@ -230,6 +230,10 @@ namespace SqlSugar
|
||||
{
|
||||
item.IndexName = item.IndexName + entityInfo.DbTableName;
|
||||
}
|
||||
if (this.Context.CurrentConnectionConfig.IndexSuffix.HasValue())
|
||||
{
|
||||
item.IndexName = (this.Context.CurrentConnectionConfig.IndexSuffix+ item.IndexName);
|
||||
}
|
||||
if (!this.Context.DbMaintenance.IsAnyIndex(item.IndexName))
|
||||
{
|
||||
var querybulder = InstanceFactory.GetSqlbuilder(this.Context.CurrentConnectionConfig);
|
||||
|
Reference in New Issue
Block a user