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
parameterParameterExpressionThe parameter expression.
propertyNamestringThe name of the property.
valuesIEnumerableThe values to check against.
Returns
- Expression<Func<T, bool>>
The expression that checks if the property is in the specified values.
Type Parameters
TThe 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
parameterParameterExpressionThe parameter expression.
propertyExpressionExpressionThe expression representing the property to check.
valuesIEnumerableThe 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
TThe type of the entity.