From 8db7d140a4e78d7fd85ddd5cdc1853bbddb795f4 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Tue, 14 Nov 2023 11:24:23 +0800 Subject: [PATCH] Update mapping tables --- Src/Asp.NetCore2/SqlSugar/SqlSugarClient.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSugar/SqlSugarClient.cs b/Src/Asp.NetCore2/SqlSugar/SqlSugarClient.cs index 4bcaf2207..9ca204ade 100644 --- a/Src/Asp.NetCore2/SqlSugar/SqlSugarClient.cs +++ b/Src/Asp.NetCore2/SqlSugar/SqlSugarClient.cs @@ -925,6 +925,10 @@ namespace SqlSugar db.Context.Ado.BeginTran(); } db.Context.Root = this; + if (db.Context.MappingTables == null) + { + db.Context.MappingTables = new MappingTableList(); + } return db.Context; }