Table of Contents

Class Filter

Namespace
GroupeIsa.Neos.ClusterCommunication.DistributedStore.Query
Assembly
GroupeIsa.Neos.ClusterCommunication.dll

Represents the filter of state store query.

public class Filter
Inheritance
Filter
Inherited Members

Constructors

Filter()

Initializes a new instance of the Filter class.

public Filter()

Filter(LogicalOperator, params Filter[])

Initializes a new instance of the Filter class.

public Filter(LogicalOperator @operator, params Filter[] filters)

Parameters

operator LogicalOperator

The logical operator (And, Or).

filters Filter[]

Filters combined with the specified operator.

Filter(string, params object[])

Initializes a new instance of the Filter class.

public Filter(string path, params object[] values)

Parameters

path string

The path of property to filter.

values object[]

The value(s) that should correspond to the current value of the property.

Properties

And

Gets filters combined with the and operator.

[JsonPropertyName("AND")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyCollection<Filter>? And { get; }

Property Value

IReadOnlyCollection<Filter>

Equal

Gets the equals predicate.

[JsonPropertyName("EQ")]
[JsonConverter(typeof(EqPredicateJsonConverter))]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public EqPredicate? Equal { get; }

Property Value

EqPredicate

In

Gets the in predicate.

[JsonPropertyName("IN")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonConverter(typeof(InPredicateJsonConverter))]
public InPredicate? In { get; }

Property Value

InPredicate

Or

Gets the filters combined with the or operator.

[JsonPropertyName("OR")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public IReadOnlyCollection<Filter>? Or { get; }

Property Value

IReadOnlyCollection<Filter>