| ResultSetRowToObjectTBuilder, T Method (FuncTBuilder, FuncTBuilder, T) |
Returns a function that convert a SQLite row into an instance of type T using the provided builder functions. The builder
function may return the same instane of builder more than once, provided that the instance is thread local or locked such
that only a single given thread ever has access to the instance between calls to builder and build.
Namespace: SQLitePCL.pretty.OrmAssembly: SQLitePCL.pretty.Orm (in SQLitePCL.pretty.Orm.dll) Version: 1.0.0.0 (1.0.0)
Syntaxpublic static Func<IReadOnlyList<IResultSetValue>, T> RowToObject<TBuilder, T>(
Func<TBuilder> builder,
Func<TBuilder, T> build
)
static member RowToObject :
builder : Func<'TBuilder> *
build : Func<'TBuilder, 'T> -> Func<IReadOnlyList<IResultSetValue>, 'T>
Parameters
- builder
- Type: SystemFuncTBuilder
A function that provides a builder object that can be used to build an instance of T. - build
- Type: SystemFuncTBuilder, T
A function that builds and instance of T using the builder.
Type Parameters
- TBuilder
- The builder type.
- T
- The mapped type.
Return Value
Type:
FuncIReadOnlyListIResultSetValue,
TThe result selector function.
See Also