4

我将我的解决方案从 .NET 3.5 更新到 4.0,感谢上帝,我只需要修复一些小问题。但我不明白的是,edmx 文件生成了许多这样的警告:

Error 2005: Mapping Association 'FK_CP_C' is redundant:
Its referential integrity constraint provides sufficient information.
You can safely delete the mapping information for this association.

你有没有遇到过这种情况?
我应该冒险并删除关联吗?
我试图用谷歌搜索它,但找不到任何东西。

谢谢

4

1 回答 1

4

仅供参考,我之前对项目进行了备份,删除了那些报告错误的关联,更新了模型,警告消失了。

我没有注意到什么样的关联导致了警告。

希望这可能对将来的某人有所帮助。

于 2010-07-06T14:32:51.597 回答