From e7c2b67c115f22196267d47551802ad05fbf20ff Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 28 May 2023 22:46:15 +0800 Subject: [PATCH] Synchronization code --- .../Abstract/CodeFirstProvider/SplitCodeFirstProvider.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/CodeFirstProvider/SplitCodeFirstProvider.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/CodeFirstProvider/SplitCodeFirstProvider.cs index 7560cdcd5..a520eac2f 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/CodeFirstProvider/SplitCodeFirstProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/CodeFirstProvider/SplitCodeFirstProvider.cs @@ -21,7 +21,9 @@ namespace SqlSugar var isSplitEntity = type.GetCustomAttribute() != null; if (isSplitEntity) { + UtilMethods.StartCustomSplitTable(this.Context, type); _InitTables(type); + UtilMethods.EndCustomSplitTable(this.Context, type); } else {