we recently migrated to .net core 5.0.4 from 3.1 and EF eager loading has stopped functioning. It no longer loads the dependent object.
We attempt to load a dependent entity like so (but related Permissions obj is not loaded):
var test = _db.Guardians.Include(x => x.Permissions).First(x => x.Id == id);
Although the PermissionId Fk is populated, the dependent entity is not:

Other than migrating to EF Core 5, there have been no other changes.
POCO in case it helps:
public class GuardianModel : PersonModel
{
public int PermissionsId { get; set; }
[ForeignKey("PermissionsId")]
public virtual GuardianPermission Permissions { get; set; }
public GuardianModel() : base()
{
Permissions = new GuardianPermission();
Active = true;
}
}
public class GuardianPermission
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public bool MessageAsEmail { get; set; }
public bool Permission { get; set; }
public bool Message { get; set; }
public bool CovidReportEmail { get; set; }
public bool PermissionEmails { get; set; }
public bool System { get; set; }
public GuardianPermission()
{
MessageAsEmail = true;
Permission = true;
Message = true;
PermissionEmails = true;
}
}
I have tried every answer google returned, added explicit FK reference, FK is no longer nullable, removed virtual keyword, nothing made a difference.
Any guidance/troubleshooting steps is greatly appreciated.