Table of Contents

Method GetInExpression

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

GetInExpression<T>(ParameterExpression, string, IEnumerable)

Gets the expression that checks if the property is in the specified values.

public static Expression<Func<T, bool>> GetInExpression<T>(ParameterExpression parameter, string propertyName, IEnumerable values)

Parameters

parameter ParameterExpression

The parameter expression.

propertyName string

The name of the property.

values IEnumerable

The values to check against.

Returns

Expression<Func<T, bool>>

The expression that checks if the property is in the specified values.

Type Parameters

T

The type of the entity.

GetInExpression<T>(ParameterExpression, Expression, IEnumerable)

Generates an expression that checks if the property value is in the specified collection of values.

public static Expression<Func<T, bool>> GetInExpression<T>(ParameterExpression parameter, Expression propertyExpression, IEnumerable values)

Parameters

parameter ParameterExpression

The parameter expression.

propertyExpression Expression

The expression representing the property to check.

values IEnumerable

The collection of values to check against.

Returns

Expression<Func<T, bool>>

An expression that represents the check for the property value being in the specified collection of values.

Type Parameters

T

The type of the entity.