AdoX GetRelations returns all key types not just foreign keys (#245)

* GetRelations only needs to return rows for foreign keys and not unique or primary keys. This makes it match DAO
pull/247/head
Christopher Jolly 2 years ago committed by GitHub
parent d20cafa6bf
commit c51b182962
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -419,6 +419,11 @@ namespace EntityFrameworkCore.Jet.Data
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

Loading…
Cancel
Save