[WIP] Use compiled queries

This commit is contained in:
lorenz.stechauner committed 2026-04-06 23:26:25 +02:00
1 parent 18f8c34f67
commit a4e1007b1b
42 files changed
+393 -379

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ namespace Elwig.Helpers.Export {
List<WbGl> currentWbGls;
using (var ctx = new AppDbContext()) {
branches = await ctx.Branches.ToDictionaryAsync(b => b.ZwstId);
branches = await ctx.FetchBranches().ToDictionaryAsync(b => b.ZwstId);
currentDids = await ctx.Deliveries
.GroupBy(d => d.Year)
.ToDictionaryAsync(g => g.Key, g => g.Max(d => d.DId));