Saeid
Saeid

Reputation: 568

Can i use foreign key to unique constraint in EF6?

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

Answers (1)

Saeid
Saeid

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

Related Questions