Browse Source

Synchronization code

pull/31/head
sunkaixuan 2 years ago
parent
commit
41a09446e1
  1. 5
      Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs
  2. 4
      Src/Asp.NetCore2/SqlSugar/Realization/Dm/SqlBuilder/DmExpressionContext.cs

5
Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs

@ -1196,6 +1196,11 @@ namespace SqlSugar
result +=
QueryBuilder.GetExpressionValue(item, isSingle ? ResolveExpressType.FieldSingle : ResolveExpressType.FieldMultiple).GetResultString() + ",";
}
else if (item is MemberExpression && type == OrderByType.Desc)
{
result +=
QueryBuilder.GetExpressionValue(item, isSingle ? ResolveExpressType.FieldSingle : ResolveExpressType.FieldMultiple).GetResultString() + " Desc,";
}
else if (type == OrderByType.Desc)
{
result +=

4
Src/Asp.NetCore2/SqlSugar/Realization/Dm/SqlBuilder/DmExpressionContext.cs

@ -54,6 +54,10 @@ namespace SqlSugar
}
public partial class DmMethod : DefaultDbMethod, IDbMethods
{
public override string GetStringJoinSelector(string result, string separator)
{
return $"listagg(to_char({result}),'{separator}') within group(order by {result}) ";
}
public override string ToInt64(MethodCallExpressionModel model)
{
var parameter = model.Args[0];

Loading…
Cancel
Save