首页 > 代码库 > Linq------错误: Unable to determine the principal end of an association between the types

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