diff --git a/src/EFCore.Jet.Data/AdoxSchema.cs b/src/EFCore.Jet.Data/AdoxSchema.cs index b66392a3..e1ffbf8b 100644 --- a/src/EFCore.Jet.Data/AdoxSchema.cs +++ b/src/EFCore.Jet.Data/AdoxSchema.cs @@ -419,6 +419,11 @@ public override DataTable GetRelations() var relationName = (string)key.Name; var principalTableName = (string)key.RelatedTable; + var keyType = (KeyTypeEnum)key.Type; + if (keyType != KeyTypeEnum.adKeyForeign) + { + continue; + } var relationType = !_naturalOnly ? "MANY" : null; // we don't know what kind of relationship this is