I am trying to create an Entity Model from a database. When I add the tables EF does not read my existing FK constraints. If I make a Linq to SQL file in the same project and add the same tables it reads the constraints without issue.
Whats the deal?
Recently I had the same issue – I am not sure why, but somehow the Entity Framework conflicts with some non-clustered indexes.
Similar situation:
You can try removing your indexes, regenerate your model, add the indexes again and update the regenerated model – it worked for me.