Table of Contents

Class Expression

Namespace
Dynamicweb.Indexing.Querying.Expressions
Assembly
Dynamicweb.Core.dll

The Class Expression represents common expressions

public class Expression
Inheritance
Expression
Derived
Inherited Members

Methods

And(IList<Expression>)

Creates an GroupExpression with the And operator.

public static Expression And(IList<Expression> expressions)

Parameters

expressions IList<Expression>

The expressions grouped by this GroupExpression.

Returns

Expression

Result expression

Between(Expression, Expression)

Creates an BinaryExpression with the Between operator.

public static Expression Between(Expression left, Expression right)

Parameters

left Expression

The left expression.

right Expression

The right expression.

Returns

Expression

Result expression

Binary(OperatorType, Expression, Expression)

Creates an BinaryExpression with the specified value.

public static Expression Binary(OperatorType op, Expression left, Expression right)

Parameters

op OperatorType

The OperatorType.

left Expression

The left.

right Expression

The right.

Returns

Expression

Code(string)

Creates an CodeExpression with the specified value.

public static Expression Code(string value)

Parameters

value string

The value.

Returns

Expression

Result expression

Constant(object)

Creates an ConstantExpression with the specified value.

public static Expression Constant(object value)

Parameters

value object

The value.

Returns

Expression

Result expression

Constant(string, string)

Creates an ConstantExpression with the specified value.

public static Expression Constant(string value, string typeString)

Parameters

value string

The value.

typeString string

The type string that defines the Type of the valueString.

Returns

Expression

Result expression

Contains(Expression, Expression)

Creates an BinaryExpression with the Contains operator.

public static Expression Contains(Expression left, Expression right)

Parameters

left Expression

The left expression.

right Expression

The right expression.

Returns

Expression

Result expression

ContainsExtended(Expression, Expression)

Creates an BinaryExpression with the Contains operator.

public static Expression ContainsExtended(Expression left, Expression right)

Parameters

left Expression

The left expression.

right Expression

The right expression.

Returns

Expression

Result expression

Equal(Expression, Expression)

Creates an BinaryExpression with the Equal operator.

public static Expression Equal(Expression left, Expression right)

Parameters

left Expression

The left expression.

right Expression

The right expression.

Returns

Expression

Result expression

Field(string, string?)

Creates an FieldExpression with the specified values.

public static Expression Field(string fieldName, string? source)

Parameters

fieldName string

The field.

source string

The source.

Returns

Expression

Result expression

FullTextSearch(string[], string, FullTextSearchWildcardTypes)

Creates an FullTextSearchExpression with the specified search text, fields to look in and wildcard type.

public static Expression FullTextSearch(string[] fields, string searchText, FullTextSearchWildcardTypes wildcardType)

Parameters

fields string[]

The fields. If set to null searches in all fields.

searchText string

The source.

wildcardType FullTextSearchWildcardTypes

The type of wildcard search

Returns

Expression

GreaterThan(Expression, Expression)

Creates an BinaryExpression with the GreaterThan operator.

public static Expression GreaterThan(Expression left, Expression right)

Parameters

left Expression

The left expression.

right Expression

The right expression.

Returns

Expression

Result expression

GreaterThanOrEqual(Expression, Expression)

Creates an BinaryExpression with the GreaterThanOrEqual operator.

public static Expression GreaterThanOrEqual(Expression left, Expression right)

Parameters

left Expression

The left expression.

right Expression

The right expression.

Returns

Expression

Result expression

Group(bool, OperatorType, List<Expression>)

Creates an GroupExpression with the specified value.

public static Expression Group(bool negate, OperatorType op, List<Expression> expressions)

Parameters

negate bool

if set to true [negate].

op OperatorType

The OperatorType.

expressions List<Expression>

The expressions.

Returns

Expression

In(Expression, Expression)

Creates an BinaryExpression with the In operator.

public static Expression In(Expression left, Expression right)

Parameters

left Expression

The left expression.

right Expression

The right expression.

Returns

Expression

Result expression

LessThan(Expression, Expression)

Creates an BinaryExpression with the LessThan operator.

public static Expression LessThan(Expression left, Expression right)

Parameters

left Expression

The left expression.

right Expression

The right expression.

Returns

Expression

Result expression

LessThanOrEqual(Expression, Expression)

Creates an BinaryExpression with the LessThanOrEqual operator.

public static Expression LessThanOrEqual(Expression left, Expression right)

Parameters

left Expression

The left expression.

right Expression

The right expression.

Returns

Expression

Result expression

Macro(string)

Creates a MacroExpression with the specified macro string.

public static Expression Macro(string macroValue)

Parameters

macroValue string

The macro string for the value.

Returns

Expression

Result expression

MatchAll(Expression, Expression)

Creates an BinaryExpression with the MatchAll operator.

public static Expression MatchAll(Expression left, Expression right)

Parameters

left Expression

The left expression.

right Expression

The right expression.

Returns

Expression

MatchAny(Expression, Expression)

Creates an BinaryExpression with the MatchAny operator.

public static Expression MatchAny(Expression left, Expression right)

Parameters

left Expression

The left expression.

right Expression

The right expression.

Returns

Expression

Result expression

Or(IList<Expression>)

Creates an GroupExpression with the Or operator.

public static Expression Or(IList<Expression> expressions)

Parameters

expressions IList<Expression>

The expressions grouped by this GroupExpression.

Returns

Expression

Result expression

Parameter(string)

Creates a ParameterExpression with the specified parameter name.

public static Expression Parameter(string parameterName)

Parameters

parameterName string

Name of the variable.

Returns

Expression

Result expression

Term(object?)

Creates an TermExpression with the specified value.

public static Expression Term(object? value)

Parameters

value object

The value.

Returns

Expression

Result expression

Term(string, string)

public static Expression Term(string valueString, string typeString)

Parameters

valueString string
typeString string

Returns

Expression
To top