Method GetQuarterExpression
- Namespace
- Innova.Data.StructuredSearch.Operators
- Assembly
- Innova.Data.dll
GetQuarterExpression<T>(ParameterExpression, Expression, object, object)
Gets the expression for filtering records based on the quarter of a date property.
public static Expression<Func<T, bool>> GetQuarterExpression<T>(ParameterExpression parameter, Expression propertyExpression, object startMonth, object endMonth)
Parameters
parameter
ParameterExpressionThe parameter expression.
propertyExpression
ExpressionThe expression representing the date property.
startMonth
objectThe start month of the quarter.
endMonth
objectThe end month of the quarter.
Returns
- Expression<Func<T, bool>>
The expression for filtering records based on the quarter of a date property.
Type Parameters
T
The type of the entity.
GetQuarterExpression<T>(ParameterExpression, string, object, object)
Gets the quarter expression for filtering data based on the specified start and end months.
public static Expression<Func<T, bool>> GetQuarterExpression<T>(ParameterExpression parameter, string propertyName, object startMonth, object endMonth)
Parameters
parameter
ParameterExpressionThe parameter expression.
propertyName
stringThe name of the property.
startMonth
objectThe start month of the quarter.
endMonth
objectThe end month of the quarter.
Returns
- Expression<Func<T, bool>>
The expression representing the quarter filter.
Type Parameters
T
The type of the entity.