Browse Source

Synchronization code

pull/25/head
sunkaixuan 2 years ago
parent
commit
dbaaa80902
  1. 4
      Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/Items/SubSelectStringJoin.cs

4
Src/Asp.NetCore2/SqlSugar/ExpressionsToSql/Subquery/Items/SubSelectStringJoin.cs

@ -74,7 +74,7 @@ namespace SqlSugar
}
public void SetShortName(MethodCallExpression exp, string result)
{
if (exp.Arguments[0] is LambdaExpression && result.IsContainsIn("+", "-", "*", "/"))
if (exp.Arguments[0] is LambdaExpression )
{
var parameters = (exp.Arguments[0] as LambdaExpression).Parameters;
if (parameters != null && parameters.Count > 0)
@ -86,7 +86,7 @@ namespace SqlSugar
}
public void SetShortNameNext(MethodCallExpression exp, string result)
{
if (exp.Arguments.Count > 1 && exp.Arguments[1] is LambdaExpression && result.IsContainsIn("+", "-", "*", "/"))
if (exp.Arguments.Count > 1 && exp.Arguments[1] is LambdaExpression )
{
var parameters = (exp.Arguments[1] as LambdaExpression).Parameters;
if (parameters != null && parameters.Count > 0)

Loading…
Cancel
Save