Interface IDeleteByKeyAction<TKey>
- Namespace
- FishMMO.Database.Npgsql.Services.Interfaces.Actions
- Assembly
- FishMMO-DB.dll
Defines a delete operation keyed by a single value.
public interface IDeleteByKeyAction<TKey>
Type Parameters
TKeyThe key type used to locate the entity.
Remarks
Intended for service interfaces that expose a non-versioned delete. Implementations may perform hard deletes or soft deletes depending on the entity semantics.
Methods
DeleteAsync(TKey, CancellationToken)
Deletes the entity identified by the given key.
Task<DatabaseResult> DeleteAsync(TKey key, CancellationToken cancellationToken = default)
Parameters
keyTKeyThe key used to locate the entity.
cancellationTokenCancellationTokenToken to cancel the operation.