From 5753377cdf7781373b658430fe716474b7d5a574 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Fri, 11 Jan 2019 20:55:51 +0800 Subject: [PATCH] Subquery Mapping bug --- Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/SubTools.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/SubTools.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/SubTools.cs index 5928d5719..8896c09c5 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/SubTools.cs +++ b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Subquery/SubTools.cs @@ -48,6 +48,8 @@ namespace SqlSugar var newContext = context.GetCopyContext(); newContext.MappingColumns = context.MappingColumns; newContext.MappingTables = context.MappingTables; + newContext.InitMappingInfo = context.InitMappingInfo; + newContext.RefreshMapping = context.RefreshMapping; newContext.IgnoreComumnList = context.IgnoreComumnList; newContext.SqlFuncServices = context.SqlFuncServices; newContext.Resolve(item, type);