Click or drag to resize
SQLiteDatabaseConnectionBuilderWithAggregateFuncT Method (String, T, FuncT, ISQLiteValue, T, FuncT, ISQLiteValue)
Add an aggregate function that accepts 1 ISQLiteValue instance.

Namespace: SQLitePCL.pretty
Assembly: SQLitePCL.pretty (in SQLitePCL.pretty.dll) Version: 1.0.0.0 (1.0.0)
Syntax
public SQLiteDatabaseConnectionBuilder WithAggregateFunc<T>(
	string name,
	T seed,
	Func<T, ISQLiteValue, T> func,
	Func<T, ISQLiteValue> resultSelector
)

Parameters

name
Type: SystemString
The function name.
seed
Type: T
The initial accumulator value.
func
Type: SystemFuncT, ISQLiteValue, T
An accumulator function to be invoked on each element.
resultSelector
Type: SystemFuncT, ISQLiteValue
A function to transform the final accumulator value into the result value.

Type Parameters

T
The type of the accumulator value.

Return Value

Type: SQLiteDatabaseConnectionBuilder
A SQLiteDatabaseConnectionBuilder instance.
Remarks
Note: The functions func and resultSelector are assumed to be pure and their results may be cached and reused.
See Also