Fluent NHibernate - Map 2 tables to one class
问题 I have a table structure something like this table Employees EmployeeID EmployeeLogin EmployeeCustID table Customers CustomerID CustomerName What i would like is to map the structure above to one single class named: Class Employee EmployeeID EmployeeLogin EmployeeName How do i do that with fluent nhibernate ? 回答1: I don't know if it is possible with fluent, but in xml you use the join element: simplified: <class name="Employee" table="Customers" > <id name="CustomerID" .../> <property name=