Nhibernate - getting single column from other table
- by Muhammad Akhtar
I have following tables
Employee: ID,CompanyID,Name //CompanyID is foriegn key of Company Table
Company: CompanyID, Name
I want to map this to the following class:
public class Employee
{
public virtual Int ID { get; set; }
public virtual Int CompanyID { get; set; }
public virtual string Name { get; set; }
public virtual string…