Skip to content

Commit 1c98933

Browse files
committed
Update inQuery/notInQuery conditions for 19.1
1 parent bc22a61 commit 1c98933

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
@@ -88,8 +88,8 @@ private static Expression BuildConditionExpression<TEntity>(DataContext db, IQue
8888
"notEmpty" => Expression.And(Expression.NotEqual(field, emptyValue), targetType.IsNullableType() ? Expression.NotEqual(field, Expression.Constant(targetType.GetDefaultValue())) : Expression.Constant(true)),
8989
"equals" => Expression.Equal(field, searchValue),
9090
"doesNotEqual" => Expression.NotEqual(field, searchValue),
91-
"in" => BuildInExpression(db, filter.SearchTree, field),
92-
"notIn" => Expression.Not(BuildInExpression(db, filter.SearchTree, field)),
91+
"inQuery" => BuildInExpression(db, filter.SearchTree, field),
92+
"notInQuery" => Expression.Not(BuildInExpression(db, filter.SearchTree, field)),
9393
"contains" => Expression.Call(field, typeof(string).GetMethod("Contains", new[] { typeof(string) })!, searchValue),
9494
"doesNotContain" => Expression.Not(Expression.Call(field, typeof(string).GetMethod("Contains", new[] { typeof(string) })!, searchValue)),
9595
"startsWith" => Expression.Call(field, typeof(string).GetMethod("StartsWith", new[] { typeof(string) })!, searchValue),

0 commit comments

Comments
 (0)