msawczyn / EFDesigner2022

Entity Framework visual design surface and code-first code generation for EF6, Core and beyond
MIT License
119 stars 21 forks source link

Removal of association does not remove the isForeignKeyFor value #47

Closed alprinias closed 1 year ago

alprinias commented 1 year ago

Hi,

I had a bidirectional association between two tables and it happened that the Primary Key of the second one (Id) was also the Foreign Key for the first one. When I removed the association, the key icon was not removed from the property (see the attached image, the parent table is Incident, the child is Escape). Checking the model I saw that the isForeignKeyFor property had a value which was not pointing to anything in the model. When I replaced it with "00000-00..." the key icon disappeared.

Best, Alex IncidentEscape

msawczyn commented 1 year ago

Fixed in 4.2.2