I am getting this error when generate Database from Entity Framework Code First.
I didn´t see any problem with script:
alter table [dbo].[Votes] add
Edit: I think I found the problem, the bug is EF
I think you are correct. This ADO.NET team blog post seems to address the problem in comments i.e. setting CascadeOnDelete = false in the PostConfiguration class.