Class QFilter<T>
Filtering applied to the class T
Inherited Members
Namespace: QarnotSDK
Assembly: QarnotSDK.dll
Syntax
public class QFilter<T>
Type Parameters
Name | Description |
---|---|
T | The class on which thw filter apply |
Methods
And(params QFilter<T>[])
Logical And operator between multiple filters
Declaration
public static QFilter<T> And(params QFilter<T>[] filters)
Parameters
Type | Name | Description |
---|---|---|
QFilter<T>[] | filters | The filters that should be linked logically |
Returns
Type | Description |
---|---|
QFilter<T> | the linked filters |
Contains<VType>(Expression<Func<T, IEnumerable<VType>>>, VType)
Logical Equal filter array element
Declaration
public static QFilter<T> Contains<VType>(Expression<Func<T, IEnumerable<VType>>> property, VType value)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, IEnumerable<VType>>> | property | the property array to filter |
VType | value | one of the values it should be equal to |
Returns
Type | Description |
---|---|
QFilter<T> | the filter |
Type Parameters
Name | Description |
---|---|
VType |
Eq<VType>(Expression<Func<T, VType>>, VType)
Logical Equal filter
Declaration
public static QFilter<T> Eq<VType>(Expression<Func<T, VType>> property, VType value)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, VType>> | property | the property to filter |
VType | value | the value it should be equal to |
Returns
Type | Description |
---|---|
QFilter<T> | the filter |
Type Parameters
Name | Description |
---|---|
VType |
Gt<VType>(Expression<Func<T, VType>>, VType)
Logical Greater than filter
Declaration
public static QFilter<T> Gt<VType>(Expression<Func<T, VType>> property, VType value)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, VType>> | property | the property to filter |
VType | value | the value it should greater than |
Returns
Type | Description |
---|---|
QFilter<T> | the filter |
Type Parameters
Name | Description |
---|---|
VType |
Gte<VType>(Expression<Func<T, VType>>, VType)
Logical Greater than or equal filter
Declaration
public static QFilter<T> Gte<VType>(Expression<Func<T, VType>> property, VType value)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, VType>> | property | the property to filter |
VType | value | the value it should greater than or equal |
Returns
Type | Description |
---|---|
QFilter<T> | the filter |
Type Parameters
Name | Description |
---|---|
VType |
In<VType>(Expression<Func<T, VType>>, params VType[])
Logical In filter
Declaration
public static QFilter<T> In<VType>(Expression<Func<T, VType>> property, params VType[] values)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, VType>> | property | the property to filter |
VType[] | values | The array of possible value for the property |
Returns
Type | Description |
---|---|
QFilter<T> | the filter |
Type Parameters
Name | Description |
---|---|
VType |
Like<VType>(Expression<Func<T, VType>>, VType)
Logical Like regex filter
Declaration
public static QFilter<T> Like<VType>(Expression<Func<T, VType>> property, VType value)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, VType>> | property | the property to filter |
VType | value | the regex value it should match |
Returns
Type | Description |
---|---|
QFilter<T> | the filter |
Type Parameters
Name | Description |
---|---|
VType |
Lt<VType>(Expression<Func<T, VType>>, VType)
Logical Less than filter
Declaration
public static QFilter<T> Lt<VType>(Expression<Func<T, VType>> property, VType value)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, VType>> | property | the property to filter |
VType | value | the value it should less than |
Returns
Type | Description |
---|---|
QFilter<T> | the filter |
Type Parameters
Name | Description |
---|---|
VType |
Lte<VType>(Expression<Func<T, VType>>, VType)
Logical Less than or equal filter
Declaration
public static QFilter<T> Lte<VType>(Expression<Func<T, VType>> property, VType value)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, VType>> | property | the property to filter |
VType | value | the value it should less than or equal |
Returns
Type | Description |
---|---|
QFilter<T> | the filter |
Type Parameters
Name | Description |
---|---|
VType |
Neq<VType>(Expression<Func<T, VType>>, VType)
Logical Not Equal filter
Declaration
public static QFilter<T> Neq<VType>(Expression<Func<T, VType>> property, VType value)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, VType>> | property | the property to filter |
VType | value | the value it should not be equal to |
Returns
Type | Description |
---|---|
QFilter<T> | the filter |
Type Parameters
Name | Description |
---|---|
VType |
Nin<VType>(Expression<Func<T, VType>>, params VType[])
Logical Not In filter
Declaration
public static QFilter<T> Nin<VType>(Expression<Func<T, VType>> property, params VType[] values)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, VType>> | property | the property to filter |
VType[] | values | The array of forbiden value for the property |
Returns
Type | Description |
---|---|
QFilter<T> | the filter |
Type Parameters
Name | Description |
---|---|
VType |
NotContains<VType>(Expression<Func<T, IEnumerable<VType>>>, VType)
Logical Not Equal filter array element
Declaration
public static QFilter<T> NotContains<VType>(Expression<Func<T, IEnumerable<VType>>> property, VType value)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<T, IEnumerable<VType>>> | property | the property array to filter |
VType | value | one of the values it should not be equal to |
Returns
Type | Description |
---|---|
QFilter<T> | the filter |
Type Parameters
Name | Description |
---|---|
VType |
Or(params QFilter<T>[])
Logical Or operator between multiple filters
Declaration
public static QFilter<T> Or(params QFilter<T>[] filters)
Parameters
Type | Name | Description |
---|---|---|
QFilter<T>[] | filters | The filters that should be linked logically |
Returns
Type | Description |
---|---|
QFilter<T> | the linked filters |
ToString()
Override to string
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | string format |