From 20d4bbf7ac134b9bea8347bf08e51c2a37569c9d Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Sat, 14 Oct 2023 17:31:13 +0200 Subject: [PATCH] DeliveryJournal: correctly use .Include() --- Elwig/Documents/DeliveryJournal.cshtml.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Elwig/Documents/DeliveryJournal.cshtml.cs b/Elwig/Documents/DeliveryJournal.cshtml.cs index 25ebed3..2e02f81 100644 --- a/Elwig/Documents/DeliveryJournal.cshtml.cs +++ b/Elwig/Documents/DeliveryJournal.cshtml.cs @@ -18,8 +18,7 @@ namespace Elwig.Documents { public DeliveryJournal(string filter, IQueryable deliveries) : this(filter, deliveries - .Include(p => p.Delivery) - .Include(p => p.Delivery.Member) + .Include(p => p.Delivery).ThenInclude(d => d.Member) .Include(p => p.Variant) .ToList()) { }