C#C
C#2y ago
Krille

✅ Need some help debugging EF Core db query

I am trying to get some information from the database. I am running this query:
var ordersInLastThirtyDays = await _dbContext.Orders
    .AsSplitQuery()
    .IgnorePending()
    .Where(x => x.InternalPropertyId == request.InternalPropertyId && x.UserId == _auth.GetCurrentUserId())
    .Include(x => x.Customer)
    .Include(x => x.RentableReservations)
    .ToListAsync();

I've located the problem to the RentableReservations table, but it doesn't even contain any null values.

How do I debug this error further?
image.png
Was this page helpful?