- 修复 表达式 Not 位运算符解析错误;#340

This commit is contained in:
28810
2020-06-09 14:24:54 +08:00
parent b9948f4508
commit f4ffcfff7c
3 changed files with 6 additions and 0 deletions

View File

@ -580,6 +580,7 @@ namespace FreeSql.Internal
{
case ExpressionType.Not:
var notExp = (exp as UnaryExpression)?.Operand;
if (notExp.Type.IsNumberType()) return $"~{ExpressionLambdaToSql(notExp, tsc)}"; //位操作
if (notExp.NodeType == ExpressionType.MemberAccess)
{
var notBody = ExpressionLambdaToSql(notExp, tsc);