References/has-a mapping thru 3 tables
问题 My model object Reading has a Location but it's not a direct relationship in the database. In the DB, this "has-a" relationship or "reference" spans 3 tables, as shown in this snip: My Reading maps to the ComponentReading table and i want my Location to map to the Location table. My ClassMap<Reading> class looks like this for now: public class ReadingMap : ClassMap<Reading> { public ReadingMap() { Table("ComponentReading"); Id(x => x.ID).Column("ComponentReadingId"); //References(x => x