Method GetBetweenExpression
- Namespace
- Innova.Data.StructuredSearch.Operators
- Assembly
- Innova.Data.dll
GetBetweenExpression<T>(ParameterExpression, string, object, object)
Gets an expression that represents a between comparison for the specified property.
public static Expression<Func<T, bool>> GetBetweenExpression<T>(ParameterExpression parameter, string propertyName, object from, object to)
Parameters
parameter
ParameterExpressionThe parameter expression.
propertyName
stringThe name of the property.
from
objectThe lower bound value.
to
objectThe upper bound value.
Returns
- Expression<Func<T, bool>>
An expression that represents the between comparison.
Type Parameters
T
The type of the entity.
GetBetweenExpression<T>(ParameterExpression, Expression, object, object)
Gets an expression that represents a between comparison for the specified property.
public static Expression<Func<T, bool>> GetBetweenExpression<T>(ParameterExpression parameter, Expression propertyExpression, object from, object to)
Parameters
parameter
ParameterExpressionThe parameter expression.
propertyExpression
ExpressionThe expression representing the property.
from
objectThe lower bound value.
to
objectThe upper bound value.
Returns
- Expression<Func<T, bool>>
An expression that represents the between comparison.
Type Parameters
T
The type of the entity.