aboutsummaryrefslogtreecommitdiff
path: root/API/Database/Interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'API/Database/Interfaces')
-rw-r--r--API/Database/Interfaces/IRepository.cs24
1 files changed, 0 insertions, 24 deletions
diff --git a/API/Database/Interfaces/IRepository.cs b/API/Database/Interfaces/IRepository.cs
deleted file mode 100644
index 927e006..0000000
--- a/API/Database/Interfaces/IRepository.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System.Collections.Generic;
-using System.Threading.Tasks;
-
-namespace Camera_Shop.Database
-{
- public interface IRepository<TEntity>
- where TEntity : class
- {
- //Add Entity to database
- Task AddAsync(TEntity entity);
-
- //Return *count* instances of Entity from the database
- Task<IAsyncEnumerable<TEntity>> Query(int count);
-
- //Find entity by id
- Task<TEntity> FindByIdAsync(object id);
-
- //Modify Entity from database
- Task EditAsync(object id, TEntity newEntity);
-
- //Delete Entity from database
- Task DeleteAsync(object id);
- }
-} \ No newline at end of file