diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs index 4de60e26f..b30d66aff 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs @@ -201,6 +201,8 @@ namespace SqlSugar //} //this.Context.MappingTables.Add(entityName, tableName); this.UpdateBuilder.TableName = tableName; + if (tableName.IsNullOrEmpty()) + this.UpdateBuilder.TableName = this.EntityInfo.DbTableName; return this; ; } public IUpdateable EnableDiffLogEventIF(bool isEnableDiffLog, object businessData = null)