I\'m trying to map a simple data structure in nhibernate
Tables:
Employees employeeID int username varchar(30) departmentID int Departm
You may either: create a Fluent NHibernate convention so that the HasMany "foreign key" is created as <'Name'>ID.
HasMany
<'Name'>ID
Or change the Department mapping:
HasMany(m => m.Employees).KeyColumns.Add("DepartmentID")