Method GetNotInExpression
- Namespace
- Innova.Data.StructuredSearch.Operators
- Assembly
- Innova.Data.dll
GetNotInExpression<T>(ParameterExpression, string, IEnumerable)
Generates an expression that checks if the property value is not in the specified collection of values.
public static Expression<Func<T, bool>> GetNotInExpression<T>(ParameterExpression parameter, string propertyName, IEnumerable values)
Parameters
parameter
ParameterExpressionThe parameter expression.
propertyName
stringThe name of the property to check.
values
IEnumerableThe collection of values to check against.
Returns
- Expression<Func<T, bool>>
An expression that represents the check for the property value not being in the specified collection of values.
Type Parameters
T
The type of the entity.
GetNotInExpression<T>(ParameterExpression, Expression, IEnumerable)
Generates an expression that checks if the property value is not in the specified collection of values.
public static Expression<Func<T, bool>> GetNotInExpression<T>(ParameterExpression parameter, Expression propertyExpression, IEnumerable values)
Parameters
parameter
ParameterExpressionThe parameter expression.
propertyExpression
ExpressionThe expression representing the property to check.
values
IEnumerableThe collection of values to check against.
Returns
- Expression<Func<T, bool>>
An expression that represents the check for the property value not being in the specified collection of values.
Type Parameters
T
The type of the entity.