Table of Contents

Class CriteriaTree

Namespace
The.Search
Assembly
Instagile.dll

Static factory methods to build and manipulate criteria trees (which in turn build search queries).

public static class CriteriaTree
Inheritance
CriteriaTree
Inherited Members

Methods

Create<T>()

factory for empty criterion trees

public static ICriteriaTree<T> Create<T>()

Returns

ICriteriaTree<T>

Type Parameters

T

Create<T>(Expression<Func<T, bool>>, Expression<Func<T, bool>>)

factory for criteria trees with a root predicate

public static ICriteriaTree<T> Create<T>(Expression<Func<T, bool>> predicate, Expression<Func<T, bool>> inversePredicate)

Parameters

predicate Expression<Func<T, bool>>
inversePredicate Expression<Func<T, bool>>

Returns

ICriteriaTree<T>

Type Parameters

T

Project<T>(ICriteriaTree<T>)

projects the tree to Func<T, bool>

public static Expression<Func<T, bool>> Project<T>(this ICriteriaTree<T> self)

Parameters

self ICriteriaTree<T>

Returns

Expression<Func<T, bool>>

an expression tree which will filter a collection of T

Type Parameters

T