Table of Contents

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

parameter ParameterExpression

The parameter expression.

propertyName string

The name of the property.

from object

The lower bound value.

to object

The upper bound value.

Returns

Expression<Func<T, bool>>

An expression that represents the between comparison.

Type Parameters

T

The 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

parameter ParameterExpression

The parameter expression.

propertyExpression Expression

The expression representing the property.

from object

The lower bound value.

to object

The upper bound value.

Returns

Expression<Func<T, bool>>

An expression that represents the between comparison.

Type Parameters

T

The type of the entity.