From 908dc7562adc953ef06b8411d9d176f32312c7ee Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 7 Nov 2022 18:16:10 +0800 Subject: [PATCH] Update exp to sql --- .../SqlSugar/ExpressionsToSql/Common/ExpressionTool.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/ExpressionTool.cs b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/ExpressionTool.cs index c7f655841..a2ebd609b 100644 --- a/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/ExpressionTool.cs +++ b/Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/ExpressionTool.cs @@ -358,6 +358,11 @@ namespace SqlSugar result = true; break; } + else if (memberExpr.Expression is BinaryExpression&&(memberExpr.Expression as BinaryExpression).NodeType==ExpressionType.ArrayIndex) + { + result = true; + break; + } memberExpr = memberExpr.Expression as MemberExpression; } return result;