升级从3.5至4时,在EDMX文件警告 [英] Warnings in edmx file when upgrading from 3.5 to 4

查看:213
本文介绍了升级从3.5至4时,在EDMX文件警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更新了我的解决方案,从.NET 3.5至4.0,并感谢上帝,我不得不解决小事情。 但我不明白的是,在EDMX文件生成很多的警告是这样的:

I updated my solution from .NET 3.5 to 4.0, and thanks god, I just had to fix minor things. But what I don't understand is, the edmx file generated many warnings like this:

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.

你有没有遇到过这种问题
我应该做的冒险和删除这些关联?
我试图谷歌,但没能发现任何东西。

Have you ever encountered this?
Should I do take the risk and delete the associations?
I tried to google it but wasn't able to find anything.

感谢

推荐答案

嗯仅供参考我之前所做的项目的备份,删除了这些thoat报告了一个错误,更新了模型关联,并警告都没有了。

Well FYI I made a backup of the project before, removed those associations thoat reported an error, updated the model, and the warnings are gone.

我错过了发现什么样的联想造成了警告。

I missed to notice what kind of associations caused the warnings.

希望这可以帮助别人的未来。

Hope this might help someone in the future.

这篇关于升级从3.5至4时,在EDMX文件警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆