Can i use foreign key to unique constraint in EF6?

entity-framework entity-framework-6

Question

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?

1
3
5/23/2017 12:22:46 PM

Accepted Answer

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.

2
7/4/2016 12:05:57 AM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow