需要一些帮助来解释错误消息

时间:2016-03-18 13:16:47

标签: sql-server asp.net-mvc

当我尝试使用Package Manager Console中的Update-Database -force更新数据库时,收到以下错误消息:

Introducing FOREIGN KEY constraint
'FK_dbo.Companies_dbo.Projects_ProjectID' on table 'Companies' may cause
cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE
NO ACTION, or modify other FOREIGN KEY constraints.
Could not create constraint or index. See previous errors.

我不确定该怎么做。我知道这必须是外键的东西。关于ON DELETE NO ACTION或ON UPDATE NO ACTION,我该怎么办?

0 个答案:

没有答案