FluentNHibernate: Automapping OneToMany relation using attribute and convention

后端 未结 2 1152
挽巷
挽巷 2021-02-09 20:29

This is very similar to my previous question: FluentNHibernate: How to translate HasMany(x => x.Addresses).KeyColumn("PersonId") into automapping


Say

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-09 21:12

    I've tested your classes with FHN's auto-mapping feature and it does not create that second PersonId on Address table. I'm using FHN v1.2.0.721 from here

提交回复
热议问题