On updating database in Entity Framework , Code first Migration, I am getting this error:
The ALTER TABLE statement conflicted with the FOREIGN KEY constr
This error can also happen if you have orphan records in the child table. Clean up the database should resolve the issue.