Initial Commit
Inital Commit of Code base, nothing tested.
This commit is contained in:
commit
0144221712
31 changed files with 1304 additions and 0 deletions
10
FreeTubeSync/IRepository.cs
Normal file
10
FreeTubeSync/IRepository.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue