日期:2014-05-18  浏览次数:20772 次

MVC开发过程中遇到的一个问题
我在开发过程中遇到了以下错误,不知道有没有人遇到过,请高手指点解决方法.

“System.Data.Edm.EdmAssociationType: : Multiplicity conflicts with the referential constraint in Role 'TTemplateBookmark_TTemplateFile_Target' in relationship 'TTemplateBookmark_TTemplateFile'. Because all of the properties in the Dependent Role are non-nullable, multiplicity of the Principal Role must be '1'.”

现在我的数据库中有TTemplateFile和TTemplateBookmark两张表,其中TTemplateBookmark的Templateid字段对应TTemplateFile表的主键id,我在TTemplateFile的List界面遇到了上述错误。

在线等待。

------解决方案--------------------
打断点进去调试看一下