How to resolve: error while attempting to add FK
Posted: Fri 10 Jun 2011 07:56
I keep getting this error while attempting to add a FK in table.
What exactly does this means?
The table schema is
I am attempting to add a 1 to 1 relationship from ASPNETUSERS to USERINFO, using UserInfoID to ID. UserInfoID from ASPNETUSERS is not a key.
Code: Select all
Properties referred by the Principal Role ASPNET_USERS
must be exactly identical to the key of the EntityType MyApp.Models.Store.ASPNET_USERS
referred to by the Principal Role in the relationship constraint for Relationship MyApp.Models.Store.FK_UserInfo_AspnetUsers.
Make sure all the key properties are specified in the Principal Role.
The table schema is
Code: Select all
ASPNETUSERS
Column Type
------- --------
UserID (PK) GUID
...
UserInfoID NUMBER
USERINFO
Column Type
------- --------
ID (PK) NUMBER