读书人

MVC开发过程中遇到的一个有关问题

发布时间: 2012-05-13 16:39:43 作者: rapoo

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界面遇到了上述错误。

在线等待。

[解决办法]
打断点进去调试看一下

读书人网 >C#

热点推荐