Fluent NHibernate - Map 2 tables to one class

后端 未结 4 1963
花落未央
花落未央 2020-12-17 21:23

I have a table structure something like this

table Employees
 EmployeeID
 EmployeeLogin
 EmployeeCustID

table Customers
 CustomerID
 CustomerName

4条回答
  •  暖寄归人
    2020-12-17 21:40

    I don't know if it is possible with fluent, but in xml you use the join element:

    simplified:

    
      
    
      
    
      
        
        
      
    
    
    

    See this post by Ayende

提交回复
热议问题