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
TKeyThe 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
keyTKeyThe key used to locate the entity.
cancellationTokenCancellationTokenToken to cancel the operation.