Fluent NHibernate - Map 2 tables to one class

Posted by Morten Schmidt on Stack Overflow See other posts from Stack Overflow or by Morten Schmidt
Published on 2009-05-19T06:03:10Z Indexed on 2010/05/23 11:11 UTC
Read the original article Hit count: 194

Filed under:

Hi

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 ?

© Stack Overflow or respective owner

Related posts about fluent-nhibernate