【发布时间】:2013-03-13 19:31:20
【问题描述】:
实际上有什么区别:
this.HasRequired(a => a.Something)
.WithMany()
.Map(a => a.MapKey("SomethingId"));
和
this.HasRequired(a => a.Something)
.WithMany()
.HasForeignKey(a => a.SomethingId);
【问题讨论】:
标签: entity-framework ef-code-first entity-relationship