AsNoTracking()

This commit is contained in:
Michał Zieliński
2025-02-19 13:14:06 +01:00
parent 3fe0912640
commit 9b8203e828
15 changed files with 35 additions and 290 deletions

View File

@@ -52,6 +52,7 @@ public class T3MultiSourceSummaryProcessor(
var dataSources = sources.Select(source => db.Layers.Where(x => x.Type == LayerType.Processed && !x.IsDeleted && x.Name != null && x.Name.Contains($"{year}/{month:D2}-{source.Desc1}-T3"))
.Include(x => x.Records)
.AsNoTracking()
.FirstOrDefault())
.OfType<Layer>()
.ToList();