23.272. Class FilterRangeExt
Namespace: ArmoniK.Core.Common.gRPC
Assembly: ArmoniK.Core.Common.dll
Class to extend gRPC messages to convert them in
public static class FilterRangeExt
23.272.1. Inheritance
23.272.2. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
23.272.3. Methods
23.272.3.1. ToFilter<T, TStatus>(FilterStatusOperator, Expression<Func<T, object?>>, TStatus)
Generate a filter
public static Expression<Func<T, bool>> ToFilter<T, TStatus>(this FilterStatusOperator filterOperator, Expression<Func<T, object?>> field, TStatus value)
23.272.3.1.1. Parameters
filterOperator FilterStatusOperator
The gRPC enum that selects the operation
field Expression<Func<T, object?>>
The
value TStatus
Value for the operation
23.272.3.1.2. Returns
Expression<Func<T, bool>>
The
23.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
23.272.3.2. ToFilter<T>(FilterDateOperator, Expression<Func<T, object?>>, DateTime?)
Generate a filter
public static Expression<Func<T, bool>> ToFilter<T>(this FilterDateOperator filterOperator, Expression<Func<T, object?>> field, DateTime? value)
23.272.3.2.1. Parameters
filterOperator FilterDateOperator
The gRPC enum that selects the operation
field Expression<Func<T, object?>>
The
value DateTime?
Value for the operation
23.272.3.2.2. Returns
Expression<Func<T, bool>>
The
23.272.3.2.3. Type Parameters
T
Type of the value and field on which the operation is applied
23.272.3.3. ToFilter<T>(FilterNumberOperator, Expression<Func<T, object?>>, long)
Generate a filter
public static Expression<Func<T, bool>> ToFilter<T>(this FilterNumberOperator filterOperator, Expression<Func<T, object?>> field, long value)
23.272.3.3.1. Parameters
filterOperator FilterNumberOperator
The gRPC enum that selects the operation
field Expression<Func<T, object?>>
The
value long
Value for the operation
23.272.3.3.2. Returns
Expression<Func<T, bool>>
The
23.272.3.3.3. Type Parameters
T
Type of the value and field on which the operation is applied
23.272.3.4. ToFilter<T>(FilterStringOperator, Expression<Func<T, object?>>, string)
Generate a filter
public static Expression<Func<T, bool>> ToFilter<T>(this FilterStringOperator filterOperator, Expression<Func<T, object?>> field, string value)
23.272.3.4.1. Parameters
filterOperator FilterStringOperator
The gRPC enum that selects the operation
field Expression<Func<T, object?>>
The
value string
Value for the operation
23.272.3.4.2. Returns
Expression<Func<T, bool>>
The
23.272.3.4.3. Type Parameters
T
Type of the value and field on which the operation is applied
23.272.3.5. ToFilter<T>(FilterArrayOperator, Expression<Func<T, object?>>, string)
Generate a filter
public static Expression<Func<T, bool>> ToFilter<T>(this FilterArrayOperator filterOperator, Expression<Func<T, object?>> field, string value)
23.272.3.5.1. Parameters
filterOperator FilterArrayOperator
The gRPC enum that selects the operation
field Expression<Func<T, object?>>
The
value string
Value for the operation
23.272.3.5.2. Returns
Expression<Func<T, bool>>
The
23.272.3.5.3. Type Parameters
T
Type of the value and field on which the operation is applied
23.272.3.6. ToFilter<T>(FilterBooleanOperator, Expression<Func<T, object?>>, bool)
Generate a filter
public static Expression<Func<T, bool>> ToFilter<T>(this FilterBooleanOperator filterOperator, Expression<Func<T, object?>> field, bool value)
23.272.3.6.1. Parameters
filterOperator FilterBooleanOperator
The gRPC enum that selects the operation
field Expression<Func<T, object?>>
The
value bool
Value for the operation
23.272.3.6.2. Returns
Expression<Func<T, bool>>
The
23.272.3.6.3. Type Parameters
T
Type of the value and field on which the operation is applied
23.272.3.7. ToFilter<T>(FilterDurationOperator, Expression<Func<T, object?>>, TimeSpan?)
Generate a filter
public static Expression<Func<T, bool>> ToFilter<T>(this FilterDurationOperator filterOperator, Expression<Func<T, object?>> field, TimeSpan? value)
23.272.3.7.1. Parameters
filterOperator FilterDurationOperator
The gRPC enum that selects the operation
field Expression<Func<T, object?>>
The
value TimeSpan?
Value for the operation
23.272.3.7.2. Returns
Expression<Func<T, bool>>
The
23.272.3.7.3. Type Parameters
T
Type of the value and field on which the operation is applied