Reputation: 14148
I am trying to model relationship between 2 tables Orders and OrderDetails. I draw "relationship" arrow from OrderDetails to Orders table with Foreign key OrderID. But in DatabaseProperties for relationship arrow, I get unknown parent and unknown child. How do I connect the 2 tables with relationship arrow properly.
Upvotes: 3
Views: 7706
Reputation: 1
I struggled a bit with this and finally figure out what I did wrong.
Again, the key is to let the mouse button go only after the child table border turn into red!
Upvotes: -1
Reputation: 1
I had the same problem too, but I managed to solve it by just dragging and dropping the relationship arrow to the tables where I want to have relationship. Just wait for the red outline before you'll gonna drop the relationship arrow to the table. And then, drag the end point to another table observing the same steps. You can also change the relationship type and cardinality under the "Miscellaneous" category.
Upvotes: 0
Reputation: 22187
Orders
tableOrderDetails
table.You can also select fields to connect in "Arrow definition tab". No need to specify foreign key in advance, it will auto-add once you make connection with the arrow.
Upvotes: 4