MVC中数据库表如果是一对一的主键关系时要加[Required]不然会出错Unable to determine the principal end of an association between the types
2013-03-19 12:06
429 查看
Unable to determine the principal end of an association between the types '***. The principal end of this association must be explicitly configured using either the relationship fluent API or data annotations.
[Required] public virtual User User { get; set; }
解决的是如下情况:
相关文章推荐
- Linq------错误: Unable to determine the principal end of an association between the types
- Unable to determine the principal end of an association between the types '***. The principal end of this association must be explicitly configured using either the relationship fluent API or data annotations.
- Oracle sql developer Unable to create an instance of the Java Virtu... 解决方法
- 修复JDeveloper 11g 的 Unable to create an instance of the Java Virtual Machine问题
- Unable to load one or more of the requested types.
- 关于ADF JDeveloper 11g 的 Unable to create an instance of the Java Virtual Machine
- sqldeveloper启动时报 Unable to create an instance of the Java Virtual Machine
- Warning: Unable to determine the number of frames in this file
- Maven之Unable to load the mojo 'resources' (or one of its required components)
- iOS Interface builder was unable to determine the type of xxx.xib / xxx.storyboard
- IsolatedStoreExceptio:Unable to determine application identity of the caller
- 如何处理Jdeveloper 启动时出现的错误-Unable to create an instance of the Java Virtual Machine
- Unable to create an instance of the Java Virtual Machine Located at path:
- Fix: 'Unable to load one or more of the requested types' Errors
- 关于ADF JDeveloper 11g 的 Unable to create an instance of the Java Virtual Machine
- Interface builder was unable to determine the type of xxx.xib
- Oracle SQL developer Unable to create an instance of the Java Virtual Machine
- Given an array nums, write a function to move all 0's to the end of it while maintaining the relativ
- SQL Developer 4.0 启动报错“unable to create an instance of the java virtual machine located at path”
- Interface builder was unable to determine the type of xxx.xib