Entity diagram with tables that have foreign keys that point to a non-PK column do not show relation

Posted by Jason Coyne on Stack Overflow See other posts from Stack Overflow or by Jason Coyne
Published on 2010-05-18T21:55:26Z Indexed on 2010/05/18 22:00 UTC
Read the original article Hit count: 149

Filed under:
|
|
|
|

I have two tables parent and child.

If I make a foreign key on child that points to the primary key of parent, and then make an entity diagram, the relationship is shown correctly.

If I make the foreign key point to a different column, the relationship is not shown.

I have tried adding indexes to the column, but it does not have an effect.

The database is sqlite, but I am not sure if that has an effect since its all hidden behind ADO.net.

How do I get the relationship to work correctly?

© Stack Overflow or respective owner

Related posts about sql

Related posts about entity