Table of Contents

Method GetEqualsExpression

Namespace
Innova.Data.StructuredSearch.Operators
Assembly
Innova.Data.dll

GetEqualsExpression<T>(ParameterExpression, Expression, object)

Gets the expression that checks for equality between the property value and the filter value.

public static Expression<Func<T, bool>> GetEqualsExpression<T>(ParameterExpression parameter, Expression propertyExpression, object filterValue)

Parameters

parameter ParameterExpression

The parameter expression.

propertyExpression Expression

The expression representing the property.

filterValue object

The filter value.

Returns

Expression<Func<T, bool>>

The expression that checks for equality.

Type Parameters

T

The type of the entity.

GetEqualsExpression<T>(ParameterExpression, string, object)

Gets the expression that checks if the specified property is equal to the filter value.

public static Expression<Func<T, bool>> GetEqualsExpression<T>(ParameterExpression parameter, string propertyName, object filterValue)

Parameters

parameter ParameterExpression

The parameter expression.

propertyName string

The name of the property.

filterValue object

The filter value.

Returns

Expression<Func<T, bool>>

The expression that checks if the property is equal to the filter value.

Type Parameters

T

The type of the entity.