main
|
Last change
on this file since 877c13c was 877c13c, checked in by kikisrbinoska <srbinoskakristina07@…>, 4 months ago |
|
Added files
|
-
Property mode
set to
100644
|
|
File size:
561 bytes
|
| Line | |
|---|
| 1 | using ChapterX.Domain.Shared;
|
|---|
| 2 |
|
|---|
| 3 | namespace 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.