Introducing FOREIGN KEY constraint may cause cycles or multiple cascade paths?

前端 未结 1 1009
盖世英雄少女心
盖世英雄少女心 2020-12-20 05:38

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          


        
相关标签:
1条回答
  • 2020-12-20 06:18

    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.

    0 讨论(0)
提交回复
热议问题