Table of Contents

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 ParameterExpression

The parameter expression.

propertyExpression Expression

The expression representing the date property.

startMonth object

The start month of the quarter.

endMonth object

The 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 ParameterExpression

The parameter expression.

propertyName string

The name of the property.

startMonth object

The start month of the quarter.

endMonth object

The end month of the quarter.

Returns

Expression<Func<T, bool>>

The expression representing the quarter filter.

Type Parameters

T

The type of the entity.