Table of Contents

Interface IExistsByKeyAction<TKey>

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

Defines an existence check keyed by a single value.

public interface IExistsByKeyAction<TKey>

Type Parameters

TKey

The key type used to locate the entity.

Remarks

Intended for service interfaces that expose a fast existence check (often via indexed lookups).

Methods

ExistsAsync(TKey, CancellationToken)

Checks whether an entity exists for the given key.

Task<DatabaseResult<bool>> ExistsAsync(TKey key, CancellationToken cancellationToken = default)

Parameters

key TKey

The key used to locate the entity.

cancellationToken CancellationToken

Token to cancel the operation.

Returns

Task<DatabaseResult<bool>>