diff options
| author | transtrike <transtrike@gmail.com> | 2020-12-08 21:00:32 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2020-12-08 21:00:32 +0200 |
| commit | e5eeef589fa90d5e605617dcf11be91cfa9b39c5 (patch) | |
| tree | 3ff164a7600a85b0356dbf80fa479d3676409f0d | |
| parent | 2bcaa82e555100ffbcf6b23dd330e7bddd67cad6 (diff) | |
| download | DevHive-e5eeef589fa90d5e605617dcf11be91cfa9b39c5.tar DevHive-e5eeef589fa90d5e605617dcf11be91cfa9b39c5.tar.gz DevHive-e5eeef589fa90d5e605617dcf11be91cfa9b39c5.zip | |
Move Interfaces in Models project
| -rw-r--r-- | API/Database/DbRepository.cs | 3 | ||||
| -rw-r--r-- | Models/Interfaces/Database/IRepository.cs (renamed from API/Database/Interfaces/IRepository.cs) | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/API/Database/DbRepository.cs b/API/Database/DbRepository.cs index 5540104..b961a54 100644 --- a/API/Database/DbRepository.cs +++ b/API/Database/DbRepository.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using Camera_Shop.Database; +using Models.Interfaces.Database; using Microsoft.EntityFrameworkCore; namespace API.Database @@ -37,6 +37,7 @@ namespace API.Database { return this._context .Set<TEntity>() + .AsNoTracking() .Take(count) .AsAsyncEnumerable(); } diff --git a/API/Database/Interfaces/IRepository.cs b/Models/Interfaces/Database/IRepository.cs index 927e006..e38bb82 100644 --- a/API/Database/Interfaces/IRepository.cs +++ b/Models/Interfaces/Database/IRepository.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; using System.Threading.Tasks; -namespace Camera_Shop.Database +namespace Models.Interfaces.Database { public interface IRepository<TEntity> where TEntity : class |
