Table of Contents

Class FilterCondition

Namespace
GroupeIsa.Neos.Application.Filters
Assembly
GroupeIsa.Neos.Application.Abstractions.dll

Represents the filter condition.

public class FilterCondition : ICloneable
Inheritance
FilterCondition
Implements
Inherited Members

Constructors

FilterCondition(string, FilterOperator, params object?[])

Initializes a new instance of the FilterCondition class.

public FilterCondition(string propertyPath, FilterOperator filterOperator, params object?[] values)

Parameters

propertyPath string

Property path.

filterOperator FilterOperator

Condition operator.

values object[]

Value of the filter condition.

Properties

Active

Gets or sets a value indicating whether the condition is active. Only for transpilation.

public bool Active { get; set; }

Property Value

bool

CustomOperatorId

Gets or sets the custom operator id.

public string? CustomOperatorId { get; set; }

Property Value

string

FilterFunction

Gets or sets the filter operation.

public FilterFunction FilterFunction { get; set; }

Property Value

FilterFunction

FilterOperator

Gets the filter operator.

public FilterOperator FilterOperator { get; }

Property Value

FilterOperator

FirstValue

Gets or sets the first value of the collection values.

public object? FirstValue { get; set; }

Property Value

object

IsEmpty

Gets a value indicating whether if the filter is empty.

public bool IsEmpty { get; }

Property Value

bool

PropertyPath

Gets the property path.

public string PropertyPath { get; }

Property Value

string

ReadOnly

Gets or sets a value indicating whether the condition is read only. Only for transpilation.

public bool ReadOnly { get; set; }

Property Value

bool

Values

Gets the collection of filter values.

public IList<object?> Values { get; }

Property Value

IList<object>

Visible

Gets or sets a value indicating whether the condition is visible. Only for transpilation.

public bool Visible { get; set; }

Property Value

bool

Methods

Clone()

Creates a shallow copy of the filter condition.

public object Clone()

Returns

object

A shallow copy of the filter condition.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetFirstValueAsDate()

Resolves the first value to a concrete date. Only for transpilation.

[SuppressMessage("Minor Code Smell", "S2325:Methods and properties that don't access instance data should be static", Justification = "Transpilation")]
public DateTime? GetFirstValueAsDate()

Returns

DateTime?

The resolved date, or null.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToODataString()

Converts the filter condition to OData string.

public string ToODataString()

Returns

string

The OData string.

Exceptions

NotSupportedException

When the condition cannot be converted.

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.