From 484957d4021bedd84b460e951a72359af1397833 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 27 May 2023 19:09:02 +0800 Subject: [PATCH] Update exp to sql ( Nav one to many ) --- .../ExpressionsToSql/ResolveItems/BaseResolve_Item.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/BaseResolve_Item.cs b/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/BaseResolve_Item.cs index f74e73498..cc78b4796 100644 --- a/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/BaseResolve_Item.cs +++ b/Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/BaseResolve_Item.cs @@ -19,6 +19,11 @@ namespace SqlSugar { parameter.Context.Result.Append(this.Context.GetAsString2(asName, parameter.CommonTempData.ObjToString())); } + else if (parameter.CommonTempData?.Equals(CommonTempDataType.Append) == true) + { + parameter.Context.Result.TrimEnd(); + parameter.Context.Result.Append(" AS " + this.Context.GetTranslationColumnName(asName)); + } else { parameter.Context.Result.Append(this.Context.GetAsString(asName, parameter.CommonTempData.ObjToString()));