Page 1 of 1

Fix invalid constraint

Posted: Thu 11 Sep 2014 13:53
by dankolle
I changed the type of my keys and now I am getting errors for the constraints. When I edit the constraints I see the mismatching types but I do not see how to change it.

Error:
"The types of all properties in the Dependent Role of a referential constraint must be the same as the corresponding property types in the Principal Role."

Daniel

Re: Fix invalid constraint

Posted: Thu 11 Sep 2014 18:40
by dankolle
Okay I found it.

You fix this not by editing the constraint or the related classes but by editing the table of the constraint shown in the model explorer.

Re: Fix invalid constraint

Posted: Fri 12 Sep 2014 08:06
by Shalex
JIC: double click on the error in the Errors window should make the property/column with issue being active.