Linq------错误: Unable to determine the principal end of an association between the types

Posted 玉天恒

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linq------错误: Unable to determine the principal end of an association between the types相关的知识,希望对你有一定的参考价值。

[Table("bma_stores")]
public class Store
{
    //加上即可    
    [Required]
    public virtual Product Product { get; set; }
}

 

以上是关于Linq------错误: Unable to determine the principal end of an association between the types的主要内容,如果未能解决你的问题,请参考以下文章