Skip to main content

FieldFilterCriteriaExtensions

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

Extension methods to work fluent with field filter criterias

public static class FieldFilterCriteriaExtensions

Inheritance ObjectFieldFilterCriteriaExtensions

Methods

FieldFilter<T>(T, String, FieldFilterOperator, Object)

Adds a field filter to the query.

public static T FieldFilter<T>(T this, string attributeName, FieldFilterOperator comparisonOperator, object comparisonValue)

Type Parameters

T

Parameters

this T
The field filter collection

attributeName String
Name of attribute

comparisonOperator FieldFilterOperator
Operator of attribute

comparisonValue Object
Comparison value of the field filter

Returns

T

FieldEquals<T>(T, String, Object)

Adds a field filter that checks if the value of an attribute is equal to the given value.

public static T FieldEquals<T>(T this, string attributeName, object comparisonValue)

Type Parameters

T

Parameters

this T
The field filter collection

attributeName String
Name of attribute

comparisonValue Object
Comparison value of the field filter

Returns

T

FieldNotEquals<T>(T, String, Object)

Adds a field filter that checks if the value of an attribute is not equal to the given value.

public static T FieldNotEquals<T>(T this, string attributeName, object comparisonValue)

Type Parameters

T

Parameters

this T
The field filter collection

attributeName String
Name of attribute

comparisonValue Object
Comparison value of the field filter

Returns

T

FieldGreaterThan<T>(T, String, Object)

Adds a field filter that checks if the value of an attribute is greater than to the given value.

public static T FieldGreaterThan<T>(T this, string attributeName, object comparisonValue)

Type Parameters

T

Parameters

this T
The field filter collection

attributeName String
Name of attribute

comparisonValue Object
Comparison value of the field filter

Returns

T

FieldGreaterEqualThan<T>(T, String, Object)

Adds a field filter that checks if the value of an attribute is greater or equals to the given value.

public static T FieldGreaterEqualThan<T>(T this, string attributeName, object comparisonValue)

Type Parameters

T

Parameters

this T
The field filter collection

attributeName String
Name of attribute

comparisonValue Object
Comparison value of the field filter

Returns

T

FieldLessThan<T>(T, String, Object)

Adds a field filter that checks if the value of an attribute is less than the given value.

public static T FieldLessThan<T>(T this, string attributeName, object comparisonValue)

Type Parameters

T

Parameters

this T
The field filter collection

attributeName String
Name of attribute

comparisonValue Object
Comparison value of the field filter

Returns

T

FieldLessEqualThan<T>(T, String, Object)

Adds a field filter that checks if the value of an attribute is less or equals to the given value.

public static T FieldLessEqualThan<T>(T this, string attributeName, object comparisonValue)

Type Parameters

T

Parameters

this T
The field filter collection

attributeName String
Name of attribute

comparisonValue Object
Comparison value of the field filter

Returns

T

FieldIn<T>(T, String, Object)

Adds a field filter that checks if the value of an attribute is in the given value.

public static T FieldIn<T>(T this, string attributeName, object comparisonValue)

Type Parameters

T

Parameters

this T
The field filter collection

attributeName String
Name of attribute

comparisonValue Object
Comparison value of the field filter

Returns

T

FieldNotIn<T>(T, String, Object)

Adds a field filter that checks if the value of an attribute is not in the given value.

public static T FieldNotIn<T>(T this, string attributeName, object comparisonValue)

Type Parameters

T

Parameters

this T
The field filter collection

attributeName String
Name of attribute

comparisonValue Object
Comparison value of the field filter

Returns

T

FieldLike<T>(T, String, Object)

Adds a field filter that checks if the value of an attribute is like in the given value.

public static T FieldLike<T>(T this, string attributeName, object comparisonValue)

Type Parameters

T

Parameters

this T
The field filter collection

attributeName String
Name of attribute

comparisonValue Object
Comparison value of the field filter

Returns

T

FieldMatchRegex<T>(T, String, Object)

Adds a field filter that checks if the value of an attribute match the given regex expression.

public static T FieldMatchRegex<T>(T this, string attributeName, object comparisonValue)

Type Parameters

T

Parameters

this T
The field filter collection

attributeName String
Name of attribute

comparisonValue Object
Comparison value of the field filter

Returns

T

FieldAnyEq<T>(T, String, Object)

Adds a field filter that checks if any value of an array attribute equals.

public static T FieldAnyEq<T>(T this, string attributeName, object comparisonValue)

Type Parameters

T

Parameters

this T
The field filter collection

attributeName String
Name of attribute

comparisonValue Object
Comparison value of the field filter

Returns

T

MatchField<T>(T, String, FieldFilterCriteria)

Adds a field filter that checks if the value of an attribute match. A new filter collection is returned to describe the match.

public static T MatchField<T>(T this, string attributeName, FieldFilterCriteria fieldFilterCriteria)

Type Parameters

T

Parameters

this T
The field filter collection

attributeName String
Name of attribute

fieldFilterCriteria FieldFilterCriteria
A sub selection of filter criteria

Returns

T
A new filter collection to describe the match