21.272. Class FilterRangeExt

Namespace: ArmoniK.Core.Common.gRPC
Assembly: ArmoniK.Core.Common.dll

Class to extend gRPC messages to convert them in in order to convert them in requests to the database

public static class FilterRangeExt

21.272.1. Inheritance

objectFilterRangeExt

21.272.2. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

21.272.3. Methods

21.272.3.1. ToFilter<T, TStatus>(FilterStatusOperator, Expression<Func<T, object?>>, TStatus)

Generate a filter for operations on strings

public static Expression<Func<T, bool>> ToFilter<T, TStatus>(this FilterStatusOperator filterOperator, Expression<Func<T, object?>> field, TStatus value)

21.272.3.1.1. Parameters

filterOperator FilterStatusOperator

The gRPC enum that selects the operation

field Expression<Func<T, object?>>

The to select the field on which to apply the operation

value TStatus

Value for the operation

21.272.3.1.2. Returns

Expression<Func<T, bool>>

The that represents the operation on the field with the given value

21.272.3.1.3. Type Parameters

T

Type of the value and field on which the operation is applied

TStatus

Status enum type used for the comparison

21.272.3.2. ToFilter<T>(FilterDateOperator, Expression<Func<T, object?>>, DateTime?)

Generate a filter for operations on strings

public static Expression<Func<T, bool>> ToFilter<T>(this FilterDateOperator filterOperator, Expression<Func<T, object?>> field, DateTime? value)

21.272.3.2.1. Parameters

filterOperator FilterDateOperator

The gRPC enum that selects the operation

field Expression<Func<T, object?>>

The to select the field on which to apply the operation

value DateTime?

Value for the operation

21.272.3.2.2. Returns

Expression<Func<T, bool>>

The that represents the operation on the field with the given value

21.272.3.2.3. Type Parameters

T

Type of the value and field on which the operation is applied

21.272.3.3. ToFilter<T>(FilterNumberOperator, Expression<Func<T, object?>>, long)

Generate a filter for operations on strings

public static Expression<Func<T, bool>> ToFilter<T>(this FilterNumberOperator filterOperator, Expression<Func<T, object?>> field, long value)

21.272.3.3.1. Parameters

filterOperator FilterNumberOperator

The gRPC enum that selects the operation

field Expression<Func<T, object?>>

The to select the field on which to apply the operation

value long

Value for the operation

21.272.3.3.2. Returns

Expression<Func<T, bool>>

The that represents the operation on the field with the given value

21.272.3.3.3. Type Parameters

T

Type of the value and field on which the operation is applied

21.272.3.4. ToFilter<T>(FilterStringOperator, Expression<Func<T, object?>>, string)

Generate a filter for operations on strings

public static Expression<Func<T, bool>> ToFilter<T>(this FilterStringOperator filterOperator, Expression<Func<T, object?>> field, string value)

21.272.3.4.1. Parameters

filterOperator FilterStringOperator

The gRPC enum that selects the operation

field Expression<Func<T, object?>>

The to select the field on which to apply the operation

value string

Value for the operation

21.272.3.4.2. Returns

Expression<Func<T, bool>>

The that represents the operation on the field with the given value

21.272.3.4.3. Type Parameters

T

Type of the value and field on which the operation is applied

21.272.3.5. ToFilter<T>(FilterArrayOperator, Expression<Func<T, object?>>, string)

Generate a filter for operations on arrays

public static Expression<Func<T, bool>> ToFilter<T>(this FilterArrayOperator filterOperator, Expression<Func<T, object?>> field, string value)

21.272.3.5.1. Parameters

filterOperator FilterArrayOperator

The gRPC enum that selects the operation

field Expression<Func<T, object?>>

The to select the field on which to apply the operation

value string

Value for the operation

21.272.3.5.2. Returns

Expression<Func<T, bool>>

The that represents the operation on the field with the given value

21.272.3.5.3. Type Parameters

T

Type of the value and field on which the operation is applied

21.272.3.6. ToFilter<T>(FilterBooleanOperator, Expression<Func<T, object?>>, bool)

Generate a filter for operations on arrays

public static Expression<Func<T, bool>> ToFilter<T>(this FilterBooleanOperator filterOperator, Expression<Func<T, object?>> field, bool value)

21.272.3.6.1. Parameters

filterOperator FilterBooleanOperator

The gRPC enum that selects the operation

field Expression<Func<T, object?>>

The to select the field on which to apply the operation

value bool

Value for the operation

21.272.3.6.2. Returns

Expression<Func<T, bool>>

The that represents the operation on the field with the given value

21.272.3.6.3. Type Parameters

T

Type of the value and field on which the operation is applied

21.272.3.7. ToFilter<T>(FilterDurationOperator, Expression<Func<T, object?>>, TimeSpan?)

Generate a filter for operations on durations

public static Expression<Func<T, bool>> ToFilter<T>(this FilterDurationOperator filterOperator, Expression<Func<T, object?>> field, TimeSpan? value)

21.272.3.7.1. Parameters

filterOperator FilterDurationOperator

The gRPC enum that selects the operation

field Expression<Func<T, object?>>

The to select the field on which to apply the operation

value TimeSpan?

Value for the operation

21.272.3.7.2. Returns

Expression<Func<T, bool>>

The that represents the operation on the field with the given value

21.272.3.7.3. Type Parameters

T

Type of the value and field on which the operation is applied