Browse Source

Update exp to sql

pull/25/head
sunkaixuan 2 years ago
parent
commit
908dc7562a
  1. 5
      Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/ExpressionTool.cs

5
Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/ExpressionTool.cs

@ -358,6 +358,11 @@ namespace SqlSugar
result = true; result = true;
break; break;
} }
else if (memberExpr.Expression is BinaryExpression&&(memberExpr.Expression as BinaryExpression).NodeType==ExpressionType.ArrayIndex)
{
result = true;
break;
}
memberExpr = memberExpr.Expression as MemberExpression; memberExpr = memberExpr.Expression as MemberExpression;
} }
return result; return result;

Loading…
Cancel
Save