Table of Contents

Interface IQueryBuilder

Namespace
NRules.Fluent.Dsl
Assembly
NRules.Fluent.dll

Internal builder for queries.

public interface IQueryBuilder

Methods

Aggregate<TSource, TResult>(string, IEnumerable<KeyValuePair<string, LambdaExpression>>)

void Aggregate<TSource, TResult>(string name, IEnumerable<KeyValuePair<string, LambdaExpression>> expressions) where TSource : notnull

Parameters

name string
expressions IEnumerable<KeyValuePair<string, LambdaExpression>>

Type Parameters

TSource
TResult

Aggregate<TSource, TResult>(string, IEnumerable<KeyValuePair<string, LambdaExpression>>, Type)

void Aggregate<TSource, TResult>(string name, IEnumerable<KeyValuePair<string, LambdaExpression>> expressions, Type customFactoryType) where TSource : notnull

Parameters

name string
expressions IEnumerable<KeyValuePair<string, LambdaExpression>>
customFactoryType Type

Type Parameters

TSource
TResult

Collect<TSource>()

void Collect<TSource>() where TSource : notnull

Type Parameters

TSource

FactQuery<TSource>(Expression<Func<TSource, bool>>[])

void FactQuery<TSource>(Expression<Func<TSource, bool>>[] conditions) where TSource : notnull

Parameters

conditions Expression<Func<TSource, bool>>[]

Type Parameters

TSource

From<TSource>(Expression<Func<TSource>>)

void From<TSource>(Expression<Func<TSource>> source) where TSource : notnull

Parameters

source Expression<Func<TSource>>

Type Parameters

TSource

GroupBy<TSource, TKey, TElement>(Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>)

void GroupBy<TSource, TKey, TElement>(Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector) where TSource : notnull where TKey : notnull where TElement : notnull

Parameters

keySelector Expression<Func<TSource, TKey>>
elementSelector Expression<Func<TSource, TElement>>

Type Parameters

TSource
TKey
TElement

OrderBy<TSource, TKey>(Expression<Func<TSource, TKey>>, SortDirection)

void OrderBy<TSource, TKey>(Expression<Func<TSource, TKey>> keySelector, SortDirection sortDirection) where TSource : notnull

Parameters

keySelector Expression<Func<TSource, TKey>>
sortDirection SortDirection

Type Parameters

TSource
TKey

SelectMany<TSource, TResult>(Expression<Func<TSource, IEnumerable<TResult>>>)

void SelectMany<TSource, TResult>(Expression<Func<TSource, IEnumerable<TResult>>> selector) where TSource : notnull

Parameters

selector Expression<Func<TSource, IEnumerable<TResult>>>

Type Parameters

TSource
TResult

Select<TSource, TResult>(Expression<Func<TSource, TResult>>)

void Select<TSource, TResult>(Expression<Func<TSource, TResult>> selector) where TSource : notnull

Parameters

selector Expression<Func<TSource, TResult>>

Type Parameters

TSource
TResult

ToLookup<TSource, TKey, TElement>(Expression<Func<TSource, TKey>>, Expression<Func<TSource, TElement>>)

void ToLookup<TSource, TKey, TElement>(Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector) where TSource : notnull where TElement : notnull

Parameters

keySelector Expression<Func<TSource, TKey>>
elementSelector Expression<Func<TSource, TElement>>

Type Parameters

TSource
TKey
TElement

Where<TSource>(Expression<Func<TSource, bool>>[])

void Where<TSource>(Expression<Func<TSource, bool>>[] predicates) where TSource : notnull

Parameters

predicates Expression<Func<TSource, bool>>[]

Type Parameters

TSource