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
parameterParameterExpressionThe parameter expression.
propertyNamestringThe name of the property.
fromobjectThe lower bound value.
toobjectThe upper bound value.
Returns
- Expression<Func<T, bool>>
An expression that represents the between comparison.
Type Parameters
TThe 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
parameterParameterExpressionThe parameter expression.
propertyExpressionExpressionThe expression representing the property.
fromobjectThe lower bound value.
toobjectThe upper bound value.
Returns
- Expression<Func<T, bool>>
An expression that represents the between comparison.
Type Parameters
TThe type of the entity.