aboutsummaryrefslogtreecommitdiff
path: root/API/Database/DbRepository.cs
diff options
context:
space:
mode:
Diffstat (limited to 'API/Database/DbRepository.cs')
-rw-r--r--API/Database/DbRepository.cs3
1 files changed, 2 insertions, 1 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();
}