in a C # project, using EF Database, first I added a foreign key to the table using SQL server management studio.
After that, back to Visual Studio. I updated the model from the database, but I could not see the “link” (ie the line connecting the two tables in the .edmx diagram) between the two affected tables. Therefore, in the drop-down list above the child table, I saw this option "Entity key", and when I clicked it, a "link" appeared. Honestly, I don’t know, and I can’t understand what he is doing, because I can check or uncheck the box now without losing, let me say “link” again.
Do you know why this behavior?
Thank!!
source
share