diff options
| author | transtrike <transtrike@gmail.com> | 2021-01-15 16:45:30 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2021-01-15 16:45:30 +0200 |
| commit | 5514f1109cb3689fa81b29bb2d7dcf84cc05f65f (patch) | |
| tree | eb7804834b13f210403efa77bf0f0ece0218584f /src/DevHive.Data/Interfaces/IRepository.cs | |
| parent | e0c6b1a631fb50b2bb985a85ddf6af57cb76e09b (diff) | |
| download | DevHive-5514f1109cb3689fa81b29bb2d7dcf84cc05f65f.tar DevHive-5514f1109cb3689fa81b29bb2d7dcf84cc05f65f.tar.gz DevHive-5514f1109cb3689fa81b29bb2d7dcf84cc05f65f.zip | |
Extracted Interfaces from every DevHive.Data class; Tidied up the DevHive.Interfaces
Diffstat (limited to 'src/DevHive.Data/Interfaces/IRepository.cs')
| -rw-r--r-- | src/DevHive.Data/Interfaces/IRepository.cs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/DevHive.Data/Interfaces/IRepository.cs b/src/DevHive.Data/Interfaces/IRepository.cs deleted file mode 100644 index 40a78de..0000000 --- a/src/DevHive.Data/Interfaces/IRepository.cs +++ /dev/null @@ -1,21 +0,0 @@ -using System; -using System.Threading.Tasks; - -namespace DevHive.Data.Repositories.Interfaces -{ - public interface IRepository<TEntity> - where TEntity : class - { - //Add Entity to database - Task<bool> AddAsync(TEntity entity); - - //Find entity by id - Task<TEntity> GetByIdAsync(Guid id); - - //Modify Entity from database - Task<bool> EditAsync(TEntity newEntity); - - //Delete Entity from database - Task<bool> DeleteAsync(TEntity entity); - } -}
\ No newline at end of file |
