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
stringProperty path.
filterOperator
FilterOperatorCondition operator.
values
object[]Value of the filter condition.
Properties
FilterFunction
Gets or sets the filter operation.
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
public FilterFunction FilterFunction { get; set; }
Property Value
FilterOperator
Gets the filter operator.
public FilterOperator FilterOperator { get; }
Property Value
FirstValue
Gets or sets the first value of the collection values.
[JsonIgnore]
public object? FirstValue { get; set; }
Property Value
IsEmpty
Gets a value indicating whether if the filter is empty.
[JsonIgnore]
public bool IsEmpty { get; }
Property Value
PropertyPath
Gets the property path.
public string PropertyPath { get; }
Property Value
Values
Gets the collection of filter values.
public IList<object?> Values { get; }
Property Value
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
objectThe object to compare with the current object.
Returns
- bool
true if the specified object is equal to the current object; otherwise, false.
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.