Multiple ManyToMany between the same tables RRS feed

  • Question

  • Hi,

    I have multiple many to many relationship between 2 tables, TableA and TableB

    my problem is that in the TableA, the relations have "no sense" names, that are actually TableB, TableB1, TableB2, and so on...

    When I recreate the model from the DB, it happens that names change and my code doesn't know anymore which one is the list I want.

    Now my question is, as I have put specific names to the relationship, is there any method that the let me to have this name in the C# object model?



    Thursday, March 8, 2012 11:37 AM


  • Hi claudioe,

    Welcome to MSDN Forum.

    You can change the relationship name in Model Designer and update the database from the model.

    Best Regards

    Allen Li [MSFT]
    MSDN Community Support | Feedback to us

    Monday, March 12, 2012 2:58 AM