SQLiteDatabaseConnectionBuilderWithAggregateFuncT Method (String, T, FuncT, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, T, FuncT, ISQLiteValue) |
Add an aggregate function that accepts 8
ISQLiteValue instances.
Namespace: SQLitePCL.prettyAssembly: 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, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, T> func,
Func<T, ISQLiteValue> resultSelector
)
member WithAggregateFunc :
name : string *
seed : 'T *
func : Func<'T, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, 'T> *
resultSelector : Func<'T, ISQLiteValue> -> SQLiteDatabaseConnectionBuilder
Parameters
- name
- Type: SystemString
The function name. - seed
- Type: T
The initial accumulator value. - func
- Type: SystemFuncT, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, ISQLiteValue, 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:
SQLiteDatabaseConnectionBuilderA
SQLiteDatabaseConnectionBuilder instance.
Remarks Note: The functions func and resultSelector are assumed to be pure and their results may be cached and reused.
See Also