У меня есть код
// подключил
using IslandCity.Models;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using IslandCity.App_Data;
using Microsoft.AspNetCore.Http;
using Newtonsoft.Json;
using Microsoft.EntityFrameworkCore;
User user = db.Users
.Include(context => context.Lands)
.ThenInclude(land => land.Card)
.Include(context => context.Cards)
.FirstOrDefault(u => u.Name == accountName);
но land.Card == null хотя не должен
почему так и как пофиксить?
Буду благодарен за любой ответ!