mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
- 修复 表达式 Not 位运算符解析错误;#340
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user