What is actually the difference between:
this.HasRequired(a => a.Something)
.WithMany()
.Map(a => a.MapKey("SomethingId"));
and
this.HasRequired(a => a.Something)
.WithMany()
.HasForeignKey(a => a.SomethingId);
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…