Method GetMonthExpression
- Namespace
- Innova.Data.StructuredSearch.Operators
- Assembly
- Innova.Data.dll
GetMonthExpression<T>(ParameterExpression, Expression, object)
Gets the expression that filters records based on the month of a property.
public static Expression<Func<T, bool>> GetMonthExpression<T>(ParameterExpression parameter, Expression propertyExpression, object filterValue)
Parameters
parameter
ParameterExpressionThe parameter expression.
propertyExpression
ExpressionThe expression representing the property.
filterValue
objectThe filter value representing the month.
Returns
- Expression<Func<T, bool>>
The expression that filters records based on the month of a property.
Type Parameters
T
The type of the entity.
GetMonthExpression<T>(ParameterExpression, string, object)
Gets the expression for filtering by month.
public static Expression<Func<T, bool>> GetMonthExpression<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 for filtering by month.
Type Parameters
T
The type of the entity.