Fluent NHibernate HasMany Foreign Key Mapping Problem

后端 未结 3 1050
终归单人心
终归单人心 2021-02-06 04:20

I\'m trying to map a simple data structure in nhibernate

Tables:

Employees
employeeID int
username varchar(30)
departmentID int

Departm         


        
3条回答
  •  礼貌的吻别
    2021-02-06 04:43

    You need to use the KeyColumn method on the HasMany declaration, as explained in the documentation

提交回复
热议问题