10 lines
397 B
C#
10 lines
397 B
C#
|
|
namespace FreeTubeSync;
|
||
|
|
|
||
|
|
public interface IRepository<TEntity> where TEntity : class
|
||
|
|
{
|
||
|
|
Task AddAsync(TEntity entity, CancellationToken ct);
|
||
|
|
Task UpdateAsync(TEntity entity, CancellationToken ct);
|
||
|
|
Task DeleteAsync(TEntity entity, CancellationToken ct);
|
||
|
|
Task<TEntity?> GetByIdAsync(string id, CancellationToken ct);
|
||
|
|
Task<IEnumerable<TEntity>> GetAllAsync(CancellationToken ct);
|
||
|
|
}
|