Click or drag to resize
AsyncDatabaseConnectionFindAllAsyncT Method (IAsyncDatabaseConnection, IEnumerableInt64, FuncIReadOnlyListIResultSetValue, T, CancellationToken)
Finds all object instances specified by their primary keys.

Namespace: SQLitePCL.pretty.Orm
Assembly: SQLitePCL.pretty.Orm (in SQLitePCL.pretty.Orm.dll) Version: 1.0.0.0 (1.0.0)
Syntax
public static Task<IReadOnlyDictionary<long, T>> FindAllAsync<T>(
	this IAsyncDatabaseConnection This,
	IEnumerable<long> primaryKeys,
	Func<IReadOnlyList<IResultSetValue>, T> resultSelector,
	CancellationToken ct
)

Parameters

This
Type: SQLitePCL.prettyIAsyncDatabaseConnection
The database connection.
primaryKeys
Type: System.Collections.GenericIEnumerableInt64
An IEnumerable of primary keys to find.
resultSelector
Type: SystemFuncIReadOnlyListIResultSetValue, T
A transform function to apply to each row.
ct
Type: System.ThreadingCancellationToken
A cancellation token that can be used to cancel the operation

Type Parameters

T
The mapped type.

Return Value

Type: TaskIReadOnlyDictionaryInt64, T
A task that completes with a dictionary mapping the primary key to its value if found in the database.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAsyncDatabaseConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also