[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.CreateFilterFromString

CreateFilterFromString Method

CreateFilterFromString<T>(IDataCollection<T>, string, bool, bool, bool, bool)

Creates a FilterExpression from a query string.

Declaration
public static FilterExpression? CreateFilterFromString<T>(this IDataCollection<T> dataCollection, string query, bool treatSpacesAsAndOperator = true, bool matchNumbers = true, bool matchCase = false, bool matchWholeWord = false) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

string query

The query string to be filtered.

bool treatSpacesAsAndOperator

if set to true treat spaces as and operator.

bool matchNumbers

if set to true it will look into numeric fields.

bool matchCase

If set to true the case will be taken into account.

bool matchWholeWord

If set to true the whole word will have to be matched.

Returns
Type Description
FilterExpression
Type Parameters
Name Description
T