I added a new SQL Server database project to my solution in VS2015. I added all of my tables to this project.
I am now trying to figure out how to add foreign keys to the project through the UI preferably .
I am in the table designer and on the right side I click foreign keys and then add new. This adds a new foreign key, but when I go to the properties of it I am unable to set the columns and tables. Everything is grayed out.
The T-SQL looks like this:
CONSTRAINT [FK_Product_ToTable]
FOREIGN KEY ([Column]) REFERENCES [ToTable]([ToTableColumn])
I know I can just simply replace the params with the correct info in the T-SQL pane, but is there any way to completely do it through the UI and let the T-SQL update on its own?