Table of Contents

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

TKey

The 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

key TKey

The key used to locate the entity.

cancellationToken CancellationToken

Token to cancel the operation.

Returns

Task<DatabaseResult>