摘要: 上一篇文章我们讲解了如何用Fluent API来配置/映射属性和类型,本文将把重点放在其是如何配置关系的。 文中所使用代码如下public class Student { public int ID { get; set; } public string Name { get; set; } public DateTime EnrollmentDate { get; set; } // Navigation properties public virtual Address Address { get; set;... 阅读全文
posted @ 2013-12-20 18:17 舍长 阅读(23628) 评论(9) 推荐(17) 编辑