tags:

views:

437

answers:

1

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.

+1  A: 
  1. Make sure you are picking the relationship arrow from the Entity Relationship stencil.
  2. Drop the connector (arrow) on the surface.
  3. Pick the top of the arrow and drag into middle of the Orders table
  4. Pick the other end and drag into middle of the OrderDetails 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.

Damir Sudarevic
Worked Perfect. Thank you very much...Thank you SO.. this is an awesome site..
dotnet-practitioner