Fluent NHibernate - How to map the foreign key column as a property
- by Steve
I am sure this is a straightforward question but consider the following:
I have a reference between company and sector as follows:
public class Company {
public Guid ID { get; set; }
public Sector Sector { get; set; }
public Guid SectorID { get; set; }
}
public class Sector {
public Guid ID { get; set; }
public string Name {…