Method GetContainsExpression
- Namespace
- Innova.Data.StructuredSearch.Operators
- Assembly
- Innova.Data.dll
GetContainsExpression<T>(ParameterExpression, string, object)
Gets the expression that checks if the specified property contains the filter value.
public static Expression<Func<T, bool>> GetContainsExpression<T>(ParameterExpression parameter, string propertyName, object filterValue)
Parameters
parameter
ParameterExpressionThe parameter expression.
propertyName
stringThe name of the property.
filterValue
objectThe filter value.
Returns
- Expression<Func<T, bool>>
The expression that checks if the property contains the filter value.
Type Parameters
T
The type of the entity.
GetContainsExpression<T>(ParameterExpression, Expression, object)
Gets the expression that checks if the property contains the specified filter value.
public static Expression<Func<T, bool>> GetContainsExpression<T>(ParameterExpression parameter, Expression propertyExpression, object filterValue)
Parameters
parameter
ParameterExpressionThe parameter expression.
propertyExpression
ExpressionThe expression representing the property.
filterValue
objectThe filter value to check.
Returns
- Expression<Func<T, bool>>
The expression that checks if the property contains the filter value.
Type Parameters
T
The type of the entity.