6

I'm developing my first MVC project in Visual Studio 2012. Because i prefer "database first" approach i've started to design database. The question is: Why when i want to add foreign key i have all key properties disabled to edit (left):

enter image description here

I can only modify script directly (right) but is this really only solution? Or i did something wrong?

Thanks for any help.

Kamil Będkowski
  • 1,092
  • 4
  • 16
  • 36

2 Answers2

1

All you need to to do is right click on the foreign key options on the right side of the table view and select add new foreign key. Then in T-SQL window you need to manually edit the the foreign key and foreign key table.

Brian Hooper
  • 21,544
  • 24
  • 88
  • 139
Atul Chaudhary
  • 1,113
  • 1
  • 15
  • 15
0

Perhaps you need to manually add the relationship? It'll allow you to change it however you like there.

LTKD
  • 214
  • 2
  • 13