We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f248625 commit 1535b64Copy full SHA for 1535b64
src/JsonApiDotNetCore/Repositories/EntityFrameworkCoreRepository.cs
@@ -625,7 +625,7 @@ private bool RequireLoadOfInverseRelationship(RelationshipAttribute relationship
625
IEntityType? leftEntityType = _dbContext.Model.FindEntityType(relationship.LeftType.ClrType);
626
INavigation? navigation = leftEntityType?.FindNavigation(relationship.Property.Name);
627
628
- if (navigation != null && navigation.ForeignKey.DeclaringEntityType.ClrType == relationship.LeftType.ClrType)
+ if (HasForeignKeyAtLeftSide(relationship, navigation))
629
{
630
return true;
631
}
0 commit comments