Current definition of rule Hide Foreign Key is:
UsedInRelationships.Any(FromColumn.Name == current.Name and FromCardinality == "Many") and IsHidden == false
In my opinion, this definition is not correct because it also matches a primary keys of related tables. I believe the definition should be following:
UsedInRelationships.Any(FromTable.Name == current.Table.Name and fromColumn.Name == current.Name and FromCardinality == "Many") and IsHidden == false
Current definition of rule Hide Foreign Key is:
UsedInRelationships.Any(FromColumn.Name == current.Name and FromCardinality == "Many") and IsHidden == falseIn my opinion, this definition is not correct because it also matches a primary keys of related tables. I believe the definition should be following:
UsedInRelationships.Any(FromTable.Name == current.Table.Name and fromColumn.Name == current.Name and FromCardinality == "Many") and IsHidden == false