2025-07-19 04:02:09 -05:00
|
|
|
namespace FreeTubeSync;
|
|
|
|
|
|
|
|
|
|
public interface IRepository<TEntity> where TEntity : class
|
|
|
|
|
{
|
2025-07-22 17:03:33 -05:00
|
|
|
Task AddAsync(TEntity entity, CancellationToken ct, bool sync = true);
|
|
|
|
|
Task UpdateAsync(TEntity entity, CancellationToken ct, bool sync = true);
|
|
|
|
|
Task DeleteAsync(TEntity entity, CancellationToken ct, bool sync = true);
|
2025-07-19 04:02:09 -05:00
|
|
|
Task<TEntity?> GetByIdAsync(string id, CancellationToken ct);
|
|
|
|
|
Task<IEnumerable<TEntity>> GetAllAsync(CancellationToken ct);
|
|
|
|
|
}
|