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
parameterParameterExpressionThe parameter expression.
propertyExpressionExpressionThe expression representing the date property.
startMonthobjectThe start month of the quarter.
endMonthobjectThe 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
TThe 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
parameterParameterExpressionThe parameter expression.
propertyNamestringThe name of the property.
startMonthobjectThe start month of the quarter.
endMonthobjectThe end month of the quarter.
Returns
- Expression<Func<T, bool>>
The expression representing the quarter filter.
Type Parameters
TThe type of the entity.