Browse Source

Update exp to sql ( Nav one to many )

pull/33/head
sunkaixuan 2 years ago
parent
commit
484957d402
  1. 5
      Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/ResolveItems/BaseResolve_Item.cs

5
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()));

Loading…
Cancel
Save