Table of Contents

Interface IFetchManyByKeyAction<TKey, TItem>

Namespace
FishMMO.Database.Npgsql.Services.Interfaces.Actions
Assembly
FishMMO-DB.dll

Defines a fetch operation that explicitly returns many items for a given key.

public interface IFetchManyByKeyAction<TKey, TItem>

Type Parameters

TKey

The key type used to scope the result set.

TItem

The item type contained in the returned collection.

Remarks

Intended for service interfaces that expose a one-to-many read scoped by a key.

Methods

FetchManyAsync(TKey, CancellationToken)

Fetches many items for the given key.

Task<DatabaseResult<IReadOnlyList<TItem>>> FetchManyAsync(TKey key, CancellationToken cancellationToken = default)

Parameters

key TKey

The key used to scope the result set.

cancellationToken CancellationToken

Token to cancel the operation.

Returns

Task<DatabaseResult<IReadOnlyList<TItem>>>