source: ChapterX.Domain/Repositories/IRepository.cs@ 0b502c2

main
Last change on this file since 0b502c2 was 877c13c, checked in by kikisrbinoska <srbinoskakristina07@…>, 4 months ago

Added files

  • Property mode set to 100644
File size: 561 bytes
RevLine 
[877c13c]1using ChapterX.Domain.Shared;
2
3namespace ChapterX.Domain.Repositories
4{
5 public interface IRepository<T> where T : IEntity
6 {
7 Task<T?> GetByIdAsync(int id, CancellationToken cancellationToken = default);
8 Task<IEnumerable<T>> GetAllAsync(CancellationToken cancellationToken = default);
9 Task AddAsync(T entity, CancellationToken cancellationToken = default);
10 Task UpdateAsync(T entity, CancellationToken cancellationToken = default);
11 Task DeleteAsync(T entity, CancellationToken cancellationToken = default);
12 }
13}
Note: See TracBrowser for help on using the repository browser.