Skip to content

Commit 2cd40fa

Browse files
committed
Fix true and false ops
1 parent d278745 commit 2cd40fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NorthwindCRUD/QueryBuilder/QueryExecutor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ private static Expression BuildConditionExpression<TEntity>(DataContext db, IQue
113113
"at_before" => Expression.LessThan(CallCompare(field, searchValue), Expression.Constant(0)),
114114
"at_after" => Expression.GreaterThan(CallCompare(field, searchValue), Expression.Constant(0)),
115115
"all" => Expression.Constant(true),
116-
"true" => Expression.IsTrue(field),
117-
"false" => Expression.IsFalse(field),
116+
"true" => Expression.Equal(field, Expression.Constant(true)),
117+
"false" => Expression.Equal(field, Expression.Constant(false)),
118118
_ => throw new NotImplementedException("Not implemented"),
119119
};
120120
if (filter.IgnoreCase.Value && field.Type == typeof(string))

0 commit comments

Comments
 (0)