Reputation: 568
I know this question had been proposed and I've read the following links about my question:
Entity Framework foreign keys to non-primary key fields
Entity Framework Code First - Foreign Key to non primary key field
but I want to know is this case (foreign key to unique constraint) still not supported in EF6?
Upvotes: 3
Views: 2089
Reputation: 568
This matter still is not supported in EF6. in the other words you can not use foreign key to unique constraint in entity framework 6.
Upvotes: 3