码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-01-20 15:56:23      阅读:213      评论:0      收藏:0      [点我收藏+]

标签:required   virt   rtu   pre   store   --   type   res   linq   

[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

标签:required   virt   rtu   pre   store   --   type   res   linq   

原文地址:http://www.cnblogs.com/tianhengblogs/p/6322829.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!