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; }
}

 

posted @ 2017-01-20 14:45  玉天恒  阅读(654)  评论(0)    收藏  举报