Method GetInExpression
- Namespace
- Innova.Data.StructuredSearch.Operators
- Assembly
- Innova.Data.dll
GetInExpression<T>(ParameterExpression, string, IEnumerable)
Gets the expression that checks if the property is in the specified values.
public static Expression<Func<T, bool>> GetInExpression<T>(ParameterExpression parameter, string propertyName, IEnumerable values)
Parameters
parameter
ParameterExpressionThe parameter expression.
propertyName
stringThe name of the property.
values
IEnumerableThe values to check against.
Returns
- Expression<Func<T, bool>>
The expression that checks if the property is in the specified values.
Type Parameters
T
The type of the entity.
GetInExpression<T>(ParameterExpression, Expression, IEnumerable)
Generates an expression that checks if the property value is in the specified collection of values.
public static Expression<Func<T, bool>> GetInExpression<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 being in the specified collection of values.
Type Parameters
T
The type of the entity.