I\'m trying to map a simple data structure in nhibernate
Tables:
Employees employeeID int username varchar(30) departmentID int Departm
You need to specify the key column.
HasMany(m => m.Employees).KeyColumn("DepartmentId");