Synchronization code

This commit is contained in:
sunkaixuan 2023-04-16 16:23:00 +08:00
parent 6781c9b2c5
commit 2f3ebd74e8

View File

@ -68,8 +68,7 @@ namespace SqlSugar
{ {
var mappingKeys = GetMappingColumns(parameter.CurrentExpression); var mappingKeys = GetMappingColumns(parameter.CurrentExpression);
var isSameType = mappingKeys.Keys.Count > 0; var isSameType = mappingKeys.Keys.Count > 0;
CallContextThread<Dictionary<string, string>>.SetData("Exp_Select_Mapping_Key", mappingKeys); this.Context.SugarContext.QueryBuilder.MappingKeys = mappingKeys;
CallContextAsync<Dictionary<string, string>>.SetData("Exp_Select_Mapping_Key", mappingKeys);
this.Expression = item; this.Expression = item;
if (this.Context.IsJoin && (item is MemberInitExpression || item is NewExpression)) if (this.Context.IsJoin && (item is MemberInitExpression || item is NewExpression))
{ {