On updating database in Entity Framework , Code first Migration, I am getting this error:
The ALTER TABLE statement conflicted with the FOREIGN KEY constr
Assuming your migrations are in correct order i.e. table associated with Foreign key will get created before the reference. Follow the following steps: