Skip to main content

FieldFilter

Namespace: Meshmakers.Octo.Runtime.Contracts.Repositories.Query

Field filter object for use in queries

public class FieldFilter

Inheritance Object → FieldFilter

Properties​

AttributePath​

Gets the path to the attribute to compare

public string AttributePath { get; }

Property Value​

String

Operator​

The operator to use for the comparison

public FieldFilterOperator Operator { get; }

Property Value​

FieldFilterOperator

ComparisonValue​

The value to compare with

public object ComparisonValue { get; }

Property Value​

Object

SecondaryValue​

The secondary value for operations like Between

public object SecondaryValue { get; }

Property Value​

Object

Constructors​

FieldFilter(String, FieldFilterOperator, Object)​

Creates a new instance of FieldFilter

public FieldFilter(string attributePath, FieldFilterOperator comparisonOperator, object comparisonValue)

Parameters​

attributePath String
The path to the attribute to compare

comparisonOperator FieldFilterOperator
Operator to use for the comparison

comparisonValue Object
The value to compare with

FieldFilter(String, FieldFilterOperator, Object, Object)​

Creates a new instance of FieldFilter with a secondary value for operations like Between

public FieldFilter(string attributePath, FieldFilterOperator comparisonOperator, object comparisonValue, object secondaryValue)

Parameters​

attributePath String
The path to the attribute to compare

comparisonOperator FieldFilterOperator
Operator to use for the comparison

comparisonValue Object
The primary value to compare with

secondaryValue Object
The secondary value (e.g., for Between operations)

Methods​

ToString()​

public string ToString()

Returns​

String