Multiple foreign keys between two tables

Last post 01-14-2008 9:51 AM by Brad Engels. 0 replies.

Sort Posts:

  • Multiple foreign keys between two tables

    01-14-2008, 9:51 AM
    • Member
      19 point Member
    • Brad Engels
    • Member since 10-19-2007, 9:26 AM
    • Normal, Illinois (US)
    • Posts 8

    I have been working on an issue tracking application and have decided to do my database access using linq. The only real problem I have run into is how to link two tables that have multiple foreign key relations.

    I have table [Issue] and table [User]. [Issue] has fields issue_creator_id and issue_assigned_id, both related to [User].

    The problem that I run into is that when I access Issue.User.user_name with linq, I cannot choose between the creator or assigned relationship.

    Other than creating a different User table in the dbml for each time I have multiple foreign keys, what can I do?

    Filed under: ,
Page 1 of 1 (1 items)