Table of Contents

Method ToListAsync

Namespace
Neo4j.Driver.Mapping
Assembly
Neo4j.Driver.dll

ToListAsync<TResult, T1>(IAsyncEnumerable<IRecord>, Func<T1, TResult>, CancellationToken)

Materializes the IAsyncEnumerable<T> into a list of objects of type TResult, by mapping each record in the enumerable to an object using the provided map delegate.

public static ValueTask<IReadOnlyList<TResult>> ToListAsync<TResult, T1>(this IAsyncEnumerable<IRecord> asyncEnumerable, Func<T1, TResult> map, CancellationToken cancellationToken = default)

Parameters

asyncEnumerable IAsyncEnumerable<IRecord>

The asynchronous source of records.

map Func<T1, TResult>

The delegate to map each record to an object.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

ValueTask<IReadOnlyList<TResult>>

The list of mapped objects.

Type Parameters

TResult

The type of object to map to.

T1

The type of the first parameter of the map delegate.

ToListAsync<TResult, T1, T2>(IAsyncEnumerable<IRecord>, Func<T1, T2, TResult>, CancellationToken)

Materializes the IAsyncEnumerable<T> into a list of objects of type TResult, by mapping each record in the enumerable to an object using the provided map delegate.

public static ValueTask<IReadOnlyList<TResult>> ToListAsync<TResult, T1, T2>(this IAsyncEnumerable<IRecord> asyncEnumerable, Func<T1, T2, TResult> map, CancellationToken cancellationToken = default)

Parameters

asyncEnumerable IAsyncEnumerable<IRecord>

The asynchronous source of records.

map Func<T1, T2, TResult>

The delegate to map each record to an object.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

ValueTask<IReadOnlyList<TResult>>

The list of mapped objects.

Type Parameters

TResult

The type of object to map to.

T1

The type of the first parameter of the map delegate.

T2

The type of the second parameter of the map delegate.

ToListAsync<TResult, T1, T2, T3>(IAsyncEnumerable<IRecord>, Func<T1, T2, T3, TResult>, CancellationToken)

Materializes the IAsyncEnumerable<T> into a list of objects of type TResult, by mapping each record in the enumerable to an object using the provided map delegate.

public static ValueTask<IReadOnlyList<TResult>> ToListAsync<TResult, T1, T2, T3>(this IAsyncEnumerable<IRecord> asyncEnumerable, Func<T1, T2, T3, TResult> map, CancellationToken cancellationToken = default)

Parameters

asyncEnumerable IAsyncEnumerable<IRecord>

The asynchronous source of records.

map Func<T1, T2, T3, TResult>

The delegate to map each record to an object.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

ValueTask<IReadOnlyList<TResult>>

The list of mapped objects.

Type Parameters

TResult

The type of object to map to.

T1

The type of the first parameter of the map delegate.

T2

The type of the second parameter of the map delegate.

T3

The type of the third parameter of the map delegate.

ToListAsync<TResult, T1, T2, T3, T4>(IAsyncEnumerable<IRecord>, Func<T1, T2, T3, T4, TResult>, CancellationToken)

Materializes the IAsyncEnumerable<T> into a list of objects of type TResult, by mapping each record in the enumerable to an object using the provided map delegate.

public static ValueTask<IReadOnlyList<TResult>> ToListAsync<TResult, T1, T2, T3, T4>(this IAsyncEnumerable<IRecord> asyncEnumerable, Func<T1, T2, T3, T4, TResult> map, CancellationToken cancellationToken = default)

Parameters

asyncEnumerable IAsyncEnumerable<IRecord>

The asynchronous source of records.

map Func<T1, T2, T3, T4, TResult>

The delegate to map each record to an object.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

ValueTask<IReadOnlyList<TResult>>

The list of mapped objects.

Type Parameters

TResult

The type of object to map to.

T1

The type of the first parameter of the map delegate.

T2

The type of the second parameter of the map delegate.

T3

The type of the third parameter of the map delegate.

T4

The type of the fourth parameter of the map delegate.

ToListAsync<TResult, T1, T2, T3, T4, T5>(IAsyncEnumerable<IRecord>, Func<T1, T2, T3, T4, T5, TResult>, CancellationToken)

Materializes the IAsyncEnumerable<T> into a list of objects of type TResult, by mapping each record in the enumerable to an object using the provided map delegate.

public static ValueTask<IReadOnlyList<TResult>> ToListAsync<TResult, T1, T2, T3, T4, T5>(this IAsyncEnumerable<IRecord> asyncEnumerable, Func<T1, T2, T3, T4, T5, TResult> map, CancellationToken cancellationToken = default)

Parameters

asyncEnumerable IAsyncEnumerable<IRecord>

The asynchronous source of records.

map Func<T1, T2, T3, T4, T5, TResult>

The delegate to map each record to an object.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

ValueTask<IReadOnlyList<TResult>>

The list of mapped objects.

Type Parameters

TResult

The type of object to map to.

T1

The type of the first parameter of the map delegate.

T2

The type of the second parameter of the map delegate.

T3

The type of the third parameter of the map delegate.

T4

The type of the fourth parameter of the map delegate.

T5

The type of the fifth parameter of the map delegate.

ToListAsync<TResult, T1, T2, T3, T4, T5, T6>(IAsyncEnumerable<IRecord>, Func<T1, T2, T3, T4, T5, T6, TResult>, CancellationToken)

Materializes the IAsyncEnumerable<T> into a list of objects of type TResult, by mapping each record in the enumerable to an object using the provided map delegate.

public static ValueTask<IReadOnlyList<TResult>> ToListAsync<TResult, T1, T2, T3, T4, T5, T6>(this IAsyncEnumerable<IRecord> asyncEnumerable, Func<T1, T2, T3, T4, T5, T6, TResult> map, CancellationToken cancellationToken = default)

Parameters

asyncEnumerable IAsyncEnumerable<IRecord>

The asynchronous source of records.

map Func<T1, T2, T3, T4, T5, T6, TResult>

The delegate to map each record to an object.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

ValueTask<IReadOnlyList<TResult>>

The list of mapped objects.

Type Parameters

TResult

The type of object to map to.

T1

The type of the first parameter of the map delegate.

T2

The type of the second parameter of the map delegate.

T3

The type of the third parameter of the map delegate.

T4

The type of the fourth parameter of the map delegate.

T5

The type of the fifth parameter of the map delegate.

T6

The type of the sixth parameter of the map delegate.

ToListAsync<TResult, T1, T2, T3, T4, T5, T6, T7>(IAsyncEnumerable<IRecord>, Func<T1, T2, T3, T4, T5, T6, T7, TResult>, CancellationToken)

Materializes the IAsyncEnumerable<T> into a list of objects of type TResult, by mapping each record in the enumerable to an object using the provided map delegate.

public static ValueTask<IReadOnlyList<TResult>> ToListAsync<TResult, T1, T2, T3, T4, T5, T6, T7>(this IAsyncEnumerable<IRecord> asyncEnumerable, Func<T1, T2, T3, T4, T5, T6, T7, TResult> map, CancellationToken cancellationToken = default)

Parameters

asyncEnumerable IAsyncEnumerable<IRecord>

The asynchronous source of records.

map Func<T1, T2, T3, T4, T5, T6, T7, TResult>

The delegate to map each record to an object.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

ValueTask<IReadOnlyList<TResult>>

The list of mapped objects.

Type Parameters

TResult

The type of object to map to.

T1

The type of the first parameter of the map delegate.

T2

The type of the second parameter of the map delegate.

T3

The type of the third parameter of the map delegate.

T4

The type of the fourth parameter of the map delegate.

T5

The type of the fifth parameter of the map delegate.

T6

The type of the sixth parameter of the map delegate.

T7

The type of the seventh parameter of the map delegate.

ToListAsync<TResult, T1, T2, T3, T4, T5, T6, T7, T8>(IAsyncEnumerable<IRecord>, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>, CancellationToken)

Materializes the IAsyncEnumerable<T> into a list of objects of type TResult, by mapping each record in the enumerable to an object using the provided map delegate.

public static ValueTask<IReadOnlyList<TResult>> ToListAsync<TResult, T1, T2, T3, T4, T5, T6, T7, T8>(this IAsyncEnumerable<IRecord> asyncEnumerable, Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> map, CancellationToken cancellationToken = default)

Parameters

asyncEnumerable IAsyncEnumerable<IRecord>

The asynchronous source of records.

map Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult>

The delegate to map each record to an object.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

ValueTask<IReadOnlyList<TResult>>

The list of mapped objects.

Type Parameters

TResult

The type of object to map to.

T1

The type of the first parameter of the map delegate.

T2

The type of the second parameter of the map delegate.

T3

The type of the third parameter of the map delegate.

T4

The type of the fourth parameter of the map delegate.

T5

The type of the fifth parameter of the map delegate.

T6

The type of the sixth parameter of the map delegate.

T7

The type of the seventh parameter of the map delegate.

T8

The type of the eighth parameter of the map delegate.

ToListAsync<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>(IAsyncEnumerable<IRecord>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, CancellationToken)

Materializes the IAsyncEnumerable<T> into a list of objects of type TResult, by mapping each record in the enumerable to an object using the provided map delegate.

public static ValueTask<IReadOnlyList<TResult>> ToListAsync<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>(this IAsyncEnumerable<IRecord> asyncEnumerable, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> map, CancellationToken cancellationToken = default)

Parameters

asyncEnumerable IAsyncEnumerable<IRecord>

The asynchronous source of records.

map Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>

The delegate to map each record to an object.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

ValueTask<IReadOnlyList<TResult>>

The list of mapped objects.

Type Parameters

TResult

The type of object to map to.

T1

The type of the first parameter of the map delegate.

T2

The type of the second parameter of the map delegate.

T3

The type of the third parameter of the map delegate.

T4

The type of the fourth parameter of the map delegate.

T5

The type of the fifth parameter of the map delegate.

T6

The type of the sixth parameter of the map delegate.

T7

The type of the seventh parameter of the map delegate.

T8

The type of the eighth parameter of the map delegate.

T9

The type of the ninth parameter of the map delegate.

ToListAsync<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(IAsyncEnumerable<IRecord>, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>, CancellationToken)

Materializes the IAsyncEnumerable<T> into a list of objects of type TResult, by mapping each record in the enumerable to an object using the provided map delegate.

public static ValueTask<IReadOnlyList<TResult>> ToListAsync<TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(this IAsyncEnumerable<IRecord> asyncEnumerable, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> map, CancellationToken cancellationToken = default)

Parameters

asyncEnumerable IAsyncEnumerable<IRecord>

The asynchronous source of records.

map Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult>

The delegate to map each record to an object.

cancellationToken CancellationToken

A token to cancel the operation.

Returns

ValueTask<IReadOnlyList<TResult>>

The list of mapped objects.

Type Parameters

TResult

The type of object to map to.

T1

The type of the first parameter of the map delegate.

T2

The type of the second parameter of the map delegate.

T3

The type of the third parameter of the map delegate.

T4

The type of the fourth parameter of the map delegate.

T5

The type of the fifth parameter of the map delegate.

T6

The type of the sixth parameter of the map delegate.

T7

The type of the seventh parameter of the map delegate.

T8

The type of the eighth parameter of the map delegate.

T9

The type of the ninth parameter of the map delegate.

T10

The type of the tenth parameter of the map delegate.