From ddb9e52f08b80ee35cad3ea41b9132425776301f Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 10 Dec 2022 13:41:12 +0800 Subject: [PATCH] Synchronization Code --- .../SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs | 2 ++ 1 file changed, 2 insertions(+) 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)