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
TKeyThe key type used to scope the result set.
TItemThe 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
keyTKeyThe key used to scope the result set.
cancellationTokenCancellationTokenToken to cancel the operation.
Returns
- Task<DatabaseResult<IReadOnlyList<TItem>>>