diff --git a/.vs/SqlSugar/v14/.suo b/.vs/SqlSugar/v14/.suo index 3c2f0f99c..7ef747215 100644 Binary files a/.vs/SqlSugar/v14/.suo and b/.vs/SqlSugar/v14/.suo differ diff --git a/OrmTest/Program.cs b/OrmTest/Program.cs index 8d077e4a2..eaeb530d8 100644 --- a/OrmTest/Program.cs +++ b/OrmTest/Program.cs @@ -18,6 +18,7 @@ namespace OrmTest { string id = "1"; Expression> exp = it => it.Name!=id; + // Expression> exp = it => it.Name; ExpressionContext expContext = new ExpressionContext(exp, ResolveExpressType.Single); // var x = expContext.GetFiledName(); var xx = expContext.ToSqlString(); diff --git a/OrmTest/bin/Debug/OrmTest.exe b/OrmTest/bin/Debug/OrmTest.exe index cf072f763..30ed5043b 100644 Binary files a/OrmTest/bin/Debug/OrmTest.exe and b/OrmTest/bin/Debug/OrmTest.exe differ diff --git a/OrmTest/bin/Debug/OrmTest.pdb b/OrmTest/bin/Debug/OrmTest.pdb index 94672ade8..bd0f665d2 100644 Binary files a/OrmTest/bin/Debug/OrmTest.pdb and b/OrmTest/bin/Debug/OrmTest.pdb differ diff --git a/OrmTest/bin/Debug/SqlSugar.dll b/OrmTest/bin/Debug/SqlSugar.dll index 35a390a73..4f4743948 100644 Binary files a/OrmTest/bin/Debug/SqlSugar.dll and b/OrmTest/bin/Debug/SqlSugar.dll differ diff --git a/OrmTest/bin/Debug/SqlSugar.pdb b/OrmTest/bin/Debug/SqlSugar.pdb index ded381246..297ec9dcd 100644 Binary files a/OrmTest/bin/Debug/SqlSugar.pdb and b/OrmTest/bin/Debug/SqlSugar.pdb differ diff --git a/OrmTest/obj/Debug/OrmTest.csprojResolveAssemblyReference.cache b/OrmTest/obj/Debug/OrmTest.csprojResolveAssemblyReference.cache index 652efce71..e6fa8e7b9 100644 Binary files a/OrmTest/obj/Debug/OrmTest.csprojResolveAssemblyReference.cache and b/OrmTest/obj/Debug/OrmTest.csprojResolveAssemblyReference.cache differ diff --git a/OrmTest/obj/Debug/OrmTest.exe b/OrmTest/obj/Debug/OrmTest.exe index cf072f763..30ed5043b 100644 Binary files a/OrmTest/obj/Debug/OrmTest.exe and b/OrmTest/obj/Debug/OrmTest.exe differ diff --git a/OrmTest/obj/Debug/OrmTest.pdb b/OrmTest/obj/Debug/OrmTest.pdb index 94672ade8..bd0f665d2 100644 Binary files a/OrmTest/obj/Debug/OrmTest.pdb and b/OrmTest/obj/Debug/OrmTest.pdb differ diff --git a/SqlSugar/ExpressionsToSql/ResolveItems/LambdaExpressionResolve.cs b/SqlSugar/ExpressionsToSql/ResolveItems/LambdaExpressionResolve.cs index 0e6a7d4c3..9023cf3f6 100644 --- a/SqlSugar/ExpressionsToSql/ResolveItems/LambdaExpressionResolve.cs +++ b/SqlSugar/ExpressionsToSql/ResolveItems/LambdaExpressionResolve.cs @@ -9,18 +9,10 @@ namespace SqlSugar { public LambdaExpressionResolve(ExpressionParameter parameter) : base(parameter) { - LambdaExpression lambda =base.Expression as LambdaExpression; + LambdaExpression lambda = base.Expression as LambdaExpression; var expression = lambda.Body; - if (expression.NodeType == ExpressionType.MemberAccess) - { - string appendString = "(" +((MemberExpression)expression).Member.Name + "=1)"; - base.Context.SqlWhere.Append(appendString); - } - else - { - base.Expression = expression; - base.Start(); - } + base.Expression = expression; + base.Start(); } } } diff --git a/SqlSugar/bin/Debug/SqlSugar.dll b/SqlSugar/bin/Debug/SqlSugar.dll index 35a390a73..4f4743948 100644 Binary files a/SqlSugar/bin/Debug/SqlSugar.dll and b/SqlSugar/bin/Debug/SqlSugar.dll differ diff --git a/SqlSugar/bin/Debug/SqlSugar.pdb b/SqlSugar/bin/Debug/SqlSugar.pdb index ded381246..297ec9dcd 100644 Binary files a/SqlSugar/bin/Debug/SqlSugar.pdb and b/SqlSugar/bin/Debug/SqlSugar.pdb differ diff --git a/SqlSugar/obj/Debug/SqlSugar.dll b/SqlSugar/obj/Debug/SqlSugar.dll index 35a390a73..4f4743948 100644 Binary files a/SqlSugar/obj/Debug/SqlSugar.dll and b/SqlSugar/obj/Debug/SqlSugar.dll differ diff --git a/SqlSugar/obj/Debug/SqlSugar.pdb b/SqlSugar/obj/Debug/SqlSugar.pdb index ded381246..297ec9dcd 100644 Binary files a/SqlSugar/obj/Debug/SqlSugar.pdb and b/SqlSugar/obj/Debug/SqlSugar.pdb differ