This commit is contained in:
mmrbnjd
2024-05-27 18:57:25 +03:30
parent e8c5dfcda4
commit 66871c7425
4 changed files with 15 additions and 15 deletions

View File

@@ -30,7 +30,7 @@ namespace Back.Data.Infrastructure.Repository
public IQueryable<T> Get(Expression<Func<T, bool>> predicate)
{
var query = _query.AsQueryable();
// query = query.AsNoTracking();
query = query.AsNoTracking();
return query.Where(predicate).AsQueryable();
}
public IQueryable<T> TrackingGet(Expression<Func<T, bool>> predicate)